mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-03-11 00:11:43 +00:00
profile page fix bugs
This commit is contained in:
@ -17,7 +17,6 @@ class ProfileView extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
|
||||||
return BlocProvider(
|
return BlocProvider(
|
||||||
create: (BuildContext context) => ProfileBloc()..add(InitialProfileEvent()),
|
create: (BuildContext context) => ProfileBloc()..add(InitialProfileEvent()),
|
||||||
child: BlocConsumer<ProfileBloc, ProfileState>(
|
child: BlocConsumer<ProfileBloc, ProfileState>(
|
||||||
@ -137,9 +136,9 @@ class ProfileView extends StatelessWidget {
|
|||||||
height: 1,
|
height: 1,
|
||||||
color: ColorsManager.greyColor,
|
color: ColorsManager.greyColor,
|
||||||
),
|
),
|
||||||
|
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
profileBloc.add(const ChangeNameEvent(value: false));
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
@ -166,6 +165,7 @@ class ProfileView extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
profileBloc.add(const ChangeNameEvent(value: false));
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
|
|||||||
Reference in New Issue
Block a user