You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
968 B
Dart
46 lines
968 B
Dart
import 'package:flutter/material.dart';
|
|
import 'screens/monthly_view.dart';
|
|
|
|
void main() {
|
|
runApp(const WorkingHoursApp());
|
|
}
|
|
|
|
class WorkingHoursApp extends StatelessWidget {
|
|
const WorkingHoursApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'Working Hours',
|
|
theme: ThemeData(
|
|
useMaterial3: true,
|
|
colorSchemeSeed: const Color(0xFF4B7BE5),
|
|
visualDensity: VisualDensity.compact,
|
|
),
|
|
home: const _Home(),
|
|
);
|
|
}
|
|
}
|
|
|
|
class _Home extends StatelessWidget {
|
|
const _Home();
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return DefaultTabController(
|
|
length: 1,
|
|
child: Scaffold(
|
|
appBar: AppBar(
|
|
title: const Text('Zeitschreibung'),
|
|
bottom: const TabBar(tabs: [
|
|
Tab(text: 'Monat'),
|
|
]),
|
|
),
|
|
body: const TabBarView(children: [
|
|
MonthlyView(),
|
|
]),
|
|
),
|
|
);
|
|
}
|
|
}
|