mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-24 14:57:55 +00:00
profile page fix bugs
This commit is contained in:
@@ -24,9 +24,7 @@ class RegionPage extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
if (state is SaveState) {
|
||||
new Future.delayed(const Duration(milliseconds: 500), () {
|
||||
Navigator.of(context).pop(true);
|
||||
});
|
||||
Navigator.of(context).pop(true);
|
||||
}
|
||||
},
|
||||
builder: (context, state) {
|
||||
|
||||
@@ -17,7 +17,7 @@ class TimeZoneScreenPage extends StatelessWidget {
|
||||
return BlocProvider(
|
||||
create: (BuildContext context) => ProfileBloc()..add(TimeZoneInitialEvent()),
|
||||
child:
|
||||
BlocConsumer<ProfileBloc, ProfileState>(listener: (context, state) {
|
||||
BlocConsumer<ProfileBloc, ProfileState>(listener: (context, state) {
|
||||
if (state is FailedState) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
@@ -26,10 +26,8 @@ class TimeZoneScreenPage extends StatelessWidget {
|
||||
),
|
||||
);
|
||||
}if (state is SaveState) {
|
||||
new Future.delayed(const Duration(milliseconds: 500), () {
|
||||
Navigator.of(context).pop(true);
|
||||
});
|
||||
}
|
||||
Navigator.of(context).pop(true);
|
||||
}
|
||||
},
|
||||
builder: (context, state) {
|
||||
final profileBloc = BlocProvider.of<ProfileBloc>(context);
|
||||
@@ -38,8 +36,8 @@ class TimeZoneScreenPage extends StatelessWidget {
|
||||
padding: const EdgeInsets.all(0),
|
||||
title: 'Time Zone',
|
||||
child: state is LoadingInitialState
|
||||
? const Center(child: CircularProgressIndicator())
|
||||
: Column(
|
||||
? const Center(child: CircularProgressIndicator())
|
||||
: Column(
|
||||
children: [
|
||||
TextFormField(
|
||||
controller:profileBloc.searchController ,
|
||||
|
||||
Reference in New Issue
Block a user