Fixed Navigator Bug in new App Layout
Signed-off-by: Andreas Fahrecker <AndreasFahrecker@gmail.com>
This commit is contained in:
parent
d289cfc4d5
commit
fad8d8b49b
@ -39,7 +39,7 @@ class _ProgressCreationScreenState extends State<ProgressCreationScreen> {
|
|||||||
TimeProgress(_nameController.text, pickedStartTime, pickedEndTime);
|
TimeProgress(_nameController.text, pickedStartTime, pickedEndTime);
|
||||||
StoreProvider.of<AppState>(context)
|
StoreProvider.of<AppState>(context)
|
||||||
.dispatch(AddTimeProgressAction(tpToCreate));
|
.dispatch(AddTimeProgressAction(tpToCreate));
|
||||||
Navigator.pushNamed(context, HomeScreen.routeName);
|
Navigator.pop(context);
|
||||||
} on TimeProgressInvalidNameException catch (e) {
|
} on TimeProgressInvalidNameException catch (e) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_validName = false;
|
_validName = false;
|
||||||
@ -150,7 +150,7 @@ class _ProgressCreationScreenState extends State<ProgressCreationScreen> {
|
|||||||
heroTag: "cancelTimeProgressCreationBTN",
|
heroTag: "cancelTimeProgressCreationBTN",
|
||||||
child: Icon(Icons.cancel),
|
child: Icon(Icons.cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pushNamed(context, HomeScreen.routeName);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
@ -5,7 +5,6 @@ import 'package:time_progress_tracker/actions/actions.dart';
|
|||||||
import 'package:time_progress_tracker/models/app_exceptions.dart';
|
import 'package:time_progress_tracker/models/app_exceptions.dart';
|
||||||
import 'package:time_progress_tracker/models/app_state.dart';
|
import 'package:time_progress_tracker/models/app_state.dart';
|
||||||
import 'package:time_progress_tracker/models/time_progress.dart';
|
import 'package:time_progress_tracker/models/time_progress.dart';
|
||||||
import 'package:time_progress_tracker/screens/home_screen.dart';
|
|
||||||
import 'package:time_progress_tracker/selectors/time_progress_selectors.dart';
|
import 'package:time_progress_tracker/selectors/time_progress_selectors.dart';
|
||||||
import 'package:time_progress_tracker/widgets/app_yes_no_dialog_widget.dart';
|
import 'package:time_progress_tracker/widgets/app_yes_no_dialog_widget.dart';
|
||||||
import 'package:time_progress_tracker/widgets/progress_detail_widgets/progress_detail_circular_percent_widget.dart';
|
import 'package:time_progress_tracker/widgets/progress_detail_widgets/progress_detail_circular_percent_widget.dart';
|
||||||
@ -110,7 +109,7 @@ class _ProgressDetailScreenState extends State<ProgressDetailScreen> {
|
|||||||
|
|
||||||
void _onDeleteTimeProgress(Store<AppState> store, String id) {
|
void _onDeleteTimeProgress(Store<AppState> store, String id) {
|
||||||
store.dispatch(DeleteTimeProgressAction(id));
|
store.dispatch(DeleteTimeProgressAction(id));
|
||||||
Navigator.popAndPushNamed(context, HomeScreen.routeName);
|
Navigator.pop(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _onCloseDialog() {
|
void _onCloseDialog() {
|
||||||
|
@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||||
# Read more about iOS versioning at
|
# Read more about iOS versioning at
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
version: 0.0.8+8
|
version: 0.0.9+9
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.7.0 <3.0.0"
|
sdk: ">=2.7.0 <3.0.0"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user