Extracted MyApp into new File and renamed to TimerProgressCalculatorApp
Signed-off-by: Andreas Fahrecker <AndreasFahrecker@gmail.com>
This commit is contained in:
@ -1,25 +1,12 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:redux/redux.dart';
|
||||
import 'package:time_progress_calculator/app.dart';
|
||||
import 'package:time_progress_calculator/models/app_state.dart';
|
||||
import 'package:time_progress_calculator/reducers/app_state_reducer.dart';
|
||||
import 'package:time_progress_calculator/screens/progress_screen.dart';
|
||||
|
||||
void main() {
|
||||
runApp(MyApp());
|
||||
}
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'Time Progress Calculator',
|
||||
theme: ThemeData(
|
||||
primarySwatch: Colors.blue,
|
||||
visualDensity: VisualDensity.adaptivePlatformDensity,
|
||||
),
|
||||
initialRoute: "/",
|
||||
routes: {
|
||||
"/": (BuildContext context) => ProgressScreen(
|
||||
name: "Zivildienst",
|
||||
)
|
||||
},
|
||||
);
|
||||
}
|
||||
runApp(TimeProgressCalculatorApp(
|
||||
store: Store<AppState>(appStateReducer, initialState: AppState.initial()),
|
||||
));
|
||||
}
|
||||
|
Reference in New Issue
Block a user