flutter: fa: Fix animation icon is too high when locale is Farsi
This commit is contained in:
parent
52894fcfe3
commit
5bf9854130
|
@ -158,6 +158,12 @@ class _DrawerUserControllerState extends State<DrawerUserController>
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
var tapOffset = 0;
|
||||||
|
|
||||||
|
if (Localizations.localeOf(context).languageCode == "fa") {
|
||||||
|
tapOffset = 10; // TODO: WAR
|
||||||
|
}
|
||||||
|
|
||||||
var stack = Stack(
|
var stack = Stack(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
// this IgnorePointer we use as touch(user Interface) widget.screen View,
|
// this IgnorePointer we use as touch(user Interface) widget.screen View,
|
||||||
|
@ -177,8 +183,8 @@ class _DrawerUserControllerState extends State<DrawerUserController>
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding:
|
padding: EdgeInsets.only(
|
||||||
EdgeInsets.only(top: MediaQuery.of(context).padding.top, left: 0),
|
top: MediaQuery.of(context).padding.top + tapOffset, left: 0),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: AppBar().preferredSize.height,
|
width: AppBar().preferredSize.height,
|
||||||
height: AppBar().preferredSize.height,
|
height: AppBar().preferredSize.height,
|
||||||
|
|
Loading…
Reference in New Issue