mirror of
https://github.com/timokz/flutter-vienna-hackathon-25.git
synced 2025-11-08 23:44:19 +01:00
34 lines
944 B
Dart
34 lines
944 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:go_router/go_router.dart';
|
|
import 'package:wien_talks_flutter/show_latest_news_widget.dart';
|
|
import 'package:wien_talks_flutter/widgets/intro_text_widget.dart';
|
|
import 'package:wien_talks_flutter/widgets/screen_widget.dart';
|
|
|
|
class NewsScreen extends StatelessWidget {
|
|
const NewsScreen({
|
|
super.key,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ScreenWidget(
|
|
child: SingleChildScrollView(
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
IntroTextWidget(),
|
|
ShowLatestNewsWidget(),
|
|
SizedBox(
|
|
height: 30,
|
|
),
|
|
ElevatedButton(
|
|
onPressed: () {
|
|
context.pushNamed("create_event");
|
|
},
|
|
child: Text("Submit your own event")),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|