mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-08 17:25:01 -04:00
fix safeareas
This commit is contained in:
parent
0d888363ff
commit
3c95c9d1a3
9 changed files with 51 additions and 194 deletions
|
@ -13,7 +13,6 @@ import 'package:veilid_support/veilid_support.dart';
|
|||
import '../../account_manager/account_manager.dart';
|
||||
import '../../settings/settings.dart';
|
||||
import '../../theme/theme.dart';
|
||||
import '../../tools/native_safe_area.dart';
|
||||
import 'drawer_menu/drawer_menu.dart';
|
||||
import 'home_account_invalid.dart';
|
||||
import 'home_account_locked.dart';
|
||||
|
@ -209,7 +208,7 @@ class HomeScreenState extends State<HomeScreen>
|
|||
.indexWhere((x) => x.superIdentity.recordKey == activeLocalAccount);
|
||||
final canClose = activeIndex != -1;
|
||||
|
||||
Widget homeWidget = DefaultTextStyle(
|
||||
return DefaultTextStyle(
|
||||
style: theme.textTheme.bodySmall!,
|
||||
child: ZoomDrawer(
|
||||
controller: _zoomDrawerController,
|
||||
|
@ -238,13 +237,6 @@ class HomeScreenState extends State<HomeScreen>
|
|||
mainScreenScale: .25,
|
||||
slideWidth: min(360, MediaQuery.of(context).size.width * 0.9),
|
||||
));
|
||||
|
||||
if (isiOS || isAndroid) {
|
||||
homeWidget = NativeSafeArea(
|
||||
bottom: false, left: false, right: false, child: homeWidget);
|
||||
}
|
||||
|
||||
return homeWidget;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue