mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 14:18:57 +03:30
Improve navigation back
This commit is contained in:
@@ -7,6 +7,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:fluttertoast/fluttertoast.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import '../config/routes.dart';
|
||||
import '../providers/auth.dart';
|
||||
|
||||
class MyInfoScreen extends StatefulWidget {
|
||||
@@ -63,7 +64,7 @@ class _MyInfoScreenState extends State<MyInfoScreen> {
|
||||
color: Colors.white,
|
||||
size: 35,
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
onPressed: () => Navigator.of(context).pushNamed(Routes.homePage),
|
||||
),
|
||||
),
|
||||
body: Consumer<ConnectivityProvider>(
|
||||
@@ -174,9 +175,9 @@ class _MyInfoScreenState extends State<MyInfoScreen> {
|
||||
Navigator.of(context).pop();
|
||||
auth.resetLoading();
|
||||
Fluttertoast.showToast(
|
||||
msg: "Info changed successfully.",
|
||||
toastLength: Toast.LENGTH_SHORT,
|
||||
gravity: ToastGravity.BOTTOM,
|
||||
msg: "Info changed successfully.",
|
||||
toastLength: Toast.LENGTH_SHORT,
|
||||
gravity: ToastGravity.BOTTOM,
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user