Fixed Remaining Migration Errors
This commit is contained in:
@ -33,9 +33,12 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final ThemeData appTheme = Theme.of(context);
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text(HomeScreen.title),
|
||||
backgroundColor: appTheme.colorScheme.primary,
|
||||
),
|
||||
body: _children[_currentIndex],
|
||||
floatingActionButtonLocation: FloatingActionButtonLocation.endFloat,
|
||||
|
@ -42,9 +42,12 @@ class _ProgressCreationScreenState extends State<ProgressCreationScreen> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final ThemeData appTheme = Theme.of(context);
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text(ProgressCreationScreen.title),
|
||||
backgroundColor: appTheme.colorScheme.primary,
|
||||
),
|
||||
body: Container(
|
||||
padding: const EdgeInsets.all(12),
|
||||
@ -52,7 +55,9 @@ class _ProgressCreationScreenState extends State<ProgressCreationScreen> {
|
||||
onInit: loadSettingsIfUnloaded,
|
||||
converter: (store) => _ViewModel.create(store),
|
||||
builder: (context, _ViewModel viewModel) {
|
||||
initTimeProgress(viewModel.defaultDurationProgress);
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
initTimeProgress(viewModel.defaultDurationProgress);
|
||||
});
|
||||
return ProgressEditorWidget(
|
||||
timeProgress:
|
||||
timeProgressToCreate ?? viewModel.defaultDurationProgress,
|
||||
|
@ -79,12 +79,15 @@ class _ProgressDetailScreenState extends State<ProgressDetailScreen> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final ProgressDetailScreenArguments args =
|
||||
ModalRoute.of(context)?.settings.arguments as ProgressDetailScreenArguments;
|
||||
final ThemeData appTheme = Theme.of(context);
|
||||
final ProgressDetailScreenArguments args = ModalRoute.of(context)
|
||||
?.settings
|
||||
.arguments as ProgressDetailScreenArguments;
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text(ProgressDetailScreen.title),
|
||||
backgroundColor: appTheme.colorScheme.primary,
|
||||
),
|
||||
body: SettingsStoreConnector(
|
||||
loadedBuilder: (context, settingsVm) {
|
||||
@ -93,10 +96,11 @@ class _ProgressDetailScreenState extends State<ProgressDetailScreen> {
|
||||
loadedBuilder: (context, tpVm) {
|
||||
_initEditedProgress(tpVm.tp);
|
||||
return Container(
|
||||
margin: const EdgeInsets.all(8),
|
||||
child: Column(
|
||||
children: _renderColumnChildren(settingsVm, tpVm),
|
||||
));
|
||||
margin: const EdgeInsets.all(8),
|
||||
child: Column(
|
||||
children: _renderColumnChildren(settingsVm, tpVm),
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
},
|
||||
|
Reference in New Issue
Block a user