登录后重新渲染个人页面bug fixed

This commit is contained in:
cxc
2022-06-28 16:21:47 +08:00
parent 2a933199ed
commit 7974cfd1ed
8 changed files with 161 additions and 82 deletions

View File

@ -22,6 +22,7 @@ class RegionSelector extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SizedBox(
width: 420,
height: 100,
child: Consumer<RegionProvider>(
builder: (context, regionProvider, child) => Column(
@ -54,12 +55,17 @@ class RegionSelector extends StatelessWidget {
// SizedBox(width: 8),
Row(
children: [
InkWell(
child: Icon(Icons.close,
size: 20, color: Colors.grey[500]),
onTap: () {}),
(regionProvider.tempProvinceName != '')
? InkWell(
child: Icon(Icons.close,
size: 30,
color: Colors.grey[500]),
onTap: () {
regionProvider.clearTemp();
})
: const SizedBox(),
Icon(Icons.keyboard_arrow_down,
size: 28, color: Colors.grey[500]),
size: 30, color: Colors.grey[500]),
],
)
],