39 lines
871 B
Dart
39 lines
871 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../application/watch_session_view_model.dart';
|
|
import 'watch_session_screen.dart';
|
|
import 'watch_theme.dart';
|
|
|
|
final class WatchSessionApp extends StatefulWidget {
|
|
const WatchSessionApp({super.key});
|
|
|
|
@override
|
|
State<WatchSessionApp> createState() => _WatchSessionAppState();
|
|
}
|
|
|
|
final class _WatchSessionAppState extends State<WatchSessionApp> {
|
|
late final WatchSessionViewModel _viewModel;
|
|
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
_viewModel = WatchSessionViewModel();
|
|
}
|
|
|
|
@override
|
|
void dispose() {
|
|
_viewModel.dispose();
|
|
super.dispose();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
debugShowCheckedModeBanner: false,
|
|
title: 'GameTime',
|
|
theme: watchTheme(),
|
|
home: WatchSessionScreen(viewModel: _viewModel),
|
|
);
|
|
}
|
|
}
|