mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-16 01:56:19 +00:00
profile page fix bugs
This commit is contained in:
@ -60,39 +60,37 @@ class RegionPage extends StatelessWidget {
|
||||
topRight: Radius.circular(20),
|
||||
),
|
||||
),
|
||||
child: ListView.builder(
|
||||
child:Padding(
|
||||
padding: const EdgeInsets.only(bottom: 10.0,top: 10.0,left: 15,right: 15),
|
||||
child: ListView.builder(
|
||||
itemCount: regionList.length,
|
||||
itemBuilder: (context, index) {
|
||||
return InkWell(
|
||||
onTap: () {
|
||||
profileBloc.add(SelectRegionEvent(val: regionList[index].id, context: context));
|
||||
},
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(10.0),
|
||||
child: Column(
|
||||
child:Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 10),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 10,),
|
||||
child: SizedBox(
|
||||
height: 45,
|
||||
child: ListTile(
|
||||
contentPadding: EdgeInsets.zero,
|
||||
// trailing: BodyMedium(
|
||||
// text: regionList[index].offset,
|
||||
// fontSize: 13,
|
||||
// fontColor: ColorsManager.textGray,),
|
||||
leading: BodyMedium(
|
||||
fontSize: 15,
|
||||
text: regionList[index].name,),),
|
||||
text: regionList[index].name,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
const Divider(color: ColorsManager.textGray), // Divider between items
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
)),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
@ -62,41 +62,40 @@ class TimeZoneScreenPage extends StatelessWidget {
|
||||
topRight: Radius.circular(20),
|
||||
),
|
||||
),
|
||||
child: ListView.builder(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(bottom: 10.0,top: 10.0,left: 15,right: 15),
|
||||
child: ListView.builder(
|
||||
itemCount: timeZoneList.length,
|
||||
itemBuilder: (context, index) {
|
||||
return InkWell(
|
||||
onTap: () {
|
||||
profileBloc.add(SelectTimeZoneEvent(
|
||||
val: timeZoneList[index].id,
|
||||
context: context));
|
||||
profileBloc.add(SelectTimeZoneEvent(val: timeZoneList[index].id, context: context));
|
||||
},
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(10.0),
|
||||
child: Column(
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 10),
|
||||
child: SizedBox(
|
||||
height: 45,
|
||||
child: ListTile(
|
||||
contentPadding: EdgeInsets.zero,
|
||||
trailing: BodyMedium(
|
||||
text: timeZoneList[index].offset,
|
||||
fontSize: 13,
|
||||
fontColor: ColorsManager.textGray,),
|
||||
leading: BodyMedium(
|
||||
fontSize: 15,
|
||||
text: timeZoneList[index].name,),),
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 10,),
|
||||
child: SizedBox(
|
||||
height: 45,
|
||||
child: ListTile(
|
||||
contentPadding: EdgeInsets.zero,
|
||||
trailing: BodyMedium(
|
||||
text: timeZoneList[index].offset,
|
||||
fontSize: 13,
|
||||
fontColor: ColorsManager.textGray,),
|
||||
leading: BodyMedium(
|
||||
fontSize: 15,
|
||||
text: timeZoneList[index].name,),),
|
||||
),
|
||||
const Divider(color: ColorsManager.textGray), // Divider between items
|
||||
],
|
||||
),
|
||||
),
|
||||
const Divider(color: ColorsManager.textGray), // Divider between items
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
)),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
Reference in New Issue
Block a user