feat(map in info): minor changes

This commit is contained in:
ashilkn 2024-01-31 19:54:15 +05:30
parent 37638cc9ab
commit 36f0f45a85
2 changed files with 8 additions and 2 deletions

View file

@ -48,3 +48,9 @@ Future<bool> requestForMapEnable(BuildContext context) async {
}
return false;
}
//For debugging.
void disableMap() {
UserRemoteFlagService.instance
.setBoolValue(UserRemoteFlagService.mapEnabled, false);
}

View file

@ -187,7 +187,7 @@ class _InfoMapState extends State<InfoMap> {
clipBehavior: Clip.antiAliasWithSaveLayer,
borderRadius: const BorderRadius.all(Radius.circular(8)),
child: SizedBox(
height: 120,
height: 124,
child: _hasEnabledMap
? Stack(
clipBehavior: Clip.none,
@ -304,7 +304,7 @@ class _InfoMapState extends State<InfoMap> {
},
child: Center(
child: Text(
"Enable Maps",
S.of(context).enableMaps,
style: getEnteTextTheme(context).small,
),
),