Feature/Basic App (#1) Basic App Structure Consists of Time Progress Dashboard, Time Progress Detail View and Time Progress Creator. All of these have an AppDrawer with a Link To the Dashboard and all your Track Time Progresses, also an About Button. Commits: * Undetailed Commit more work * Changed isEditing ? in Detail Screen and Extracted FAB row to widget * Extracted Progress Detail Fab Row and Progress Detail select Date Btn to widgets * Create Progress Detail Widgets Folder * Extracted Edit Dates Row Widget * Extracted Functions from ui * Made some fields private * LoadTimerProgressList if unloaded function * Created App Yes No Dialog Widget * Using Yes No Dialog in Detail Screen * Created TimeProgress Initial Default factory * Renamed to Time Progress Tracker * Added About Button in App Drawer * Code cleanup * Code clean up and fixed Bug with null as string in Repository Signed-off-by Andreas Fahrecker <AndreasFahrecker@gmail.com>
39 lines
900 B
Dart
39 lines
900 B
Dart
import 'package:redux/redux.dart';
|
|
import 'package:time_progress_tracker/models/app_state.dart';
|
|
import 'package:time_progress_tracker/models/time_progress.dart';
|
|
|
|
class LoadTimeProgressListAction {}
|
|
|
|
class TimeProgressListLoadedAction {
|
|
final List<TimeProgress> timeProgressList;
|
|
|
|
TimeProgressListLoadedAction(this.timeProgressList);
|
|
}
|
|
|
|
class TimeProgressListNotLoadedAction {}
|
|
|
|
class AddTimeProgressAction {
|
|
final TimeProgress timeProgress;
|
|
|
|
AddTimeProgressAction(this.timeProgress);
|
|
}
|
|
|
|
class UpdateTimeProgressAction {
|
|
final String id;
|
|
final TimeProgress updatedTimeProgress;
|
|
|
|
UpdateTimeProgressAction(this.id, this.updatedTimeProgress);
|
|
}
|
|
|
|
class DeleteTimeProgressAction {
|
|
final String id;
|
|
|
|
DeleteTimeProgressAction(this.id);
|
|
}
|
|
|
|
void loadTimeProgressListIfUnloaded(Store<AppState> store) {
|
|
if (!store.state.hasLoaded) {
|
|
store.dispatch(LoadTimeProgressListAction());
|
|
}
|
|
}
|