Updated Flutter SDK for Null-Safety
Ported Progress Detail Screen to PlatformScaffold Signed-off-by: Andreas Fahrecker <AndreasFahrecker@gmail.com>
This commit is contained in:
@ -1,3 +1,11 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:time_progress_tracker/models/app_settings.dart';
|
||||
|
||||
const txtActiveProgressesScreen = "Active Progresses";
|
||||
const txtInactiveProgressesScreen = "Inactive Progresses";
|
||||
const txtSettingsScreen = "Settings";
|
||||
const txtSettingsScreen = "Settings";
|
||||
const defaultAppSettings = AppSettings(
|
||||
doneColor: Colors.green,
|
||||
leftColor: Colors.red,
|
||||
duration: Duration(days: 365),
|
||||
);
|
@ -17,7 +17,7 @@ void loadSettingsIfUnloaded(Store<AppState> store) {
|
||||
if (!store.state.hasSettingsLoaded) store.dispatch(LoadAppSettingsAction());
|
||||
}
|
||||
|
||||
TimeProgress selectProgressById(List<TimeProgress> tpList, String id) =>
|
||||
TimeProgress? selectProgressById(List<TimeProgress> tpList, String id) =>
|
||||
tpList.firstWhere((tp) => tp.id == id, orElse: null);
|
||||
|
||||
List<TimeProgress> selectActiveProgresses(List<TimeProgress> tpList) =>
|
||||
|
Reference in New Issue
Block a user