From b464c16bf0bad1580d5140ac40edf8cd39a4743d Mon Sep 17 00:00:00 2001 From: MuZhou233 Date: Fri, 2 Feb 2024 15:12:16 +0000 Subject: [PATCH] fix: test ui on android --- lib/view/layout/overlapping_panels.dart | 6 ++++-- lib/view/pages/server_select_overlay.dart | 6 +++--- lib/view/pages/tiphereth/tiphereth_frame_page.dart | 2 +- lib/view/pages/web_landing_page.dart | 1 - 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/view/layout/overlapping_panels.dart b/lib/view/layout/overlapping_panels.dart index ab139f9..e8e9f32 100644 --- a/lib/view/layout/overlapping_panels.dart +++ b/lib/view/layout/overlapping_panels.dart @@ -120,8 +120,10 @@ class OverlappingPanelsState extends State if (widget.left == null && goal > 0) goal = 0; if (widget.right == null && goal < 0) goal = 0; - if (!widget.gestureLeft && gestureEnd && goal > 0) goal = 0; - if (!widget.gestureRight && gestureEnd && goal < 0) goal = 0; + if (!widget.gestureLeft && gestureEnd && goal > 0 && lastTranslate <= 0) + goal = 0; + if (!widget.gestureRight && gestureEnd && goal < 0 && lastTranslate >= 0) + goal = 0; final Tween tween = Tween(begin: translate, end: goal); diff --git a/lib/view/pages/server_select_overlay.dart b/lib/view/pages/server_select_overlay.dart index aa2621f..44d27d6 100644 --- a/lib/view/pages/server_select_overlay.dart +++ b/lib/view/pages/server_select_overlay.dart @@ -234,7 +234,7 @@ class ServerSelectOverlayState extends State child: BootstrapContainer( children: [ BootstrapColumn( - xxs: 12, + xxs: 11, md: 8, lg: 6, child: _selected != null @@ -343,7 +343,7 @@ class _ServerSelectFormState extends State { @override Widget build(BuildContext context) { return Padding( - padding: const EdgeInsets.all(32), + padding: const EdgeInsets.all(16), child: Form( key: _formKey, child: Column( @@ -468,7 +468,7 @@ class _LoginFormState extends State { }, builder: (context, state) { return Padding( - padding: const EdgeInsets.all(32.0), + padding: const EdgeInsets.all(16.0), child: Column( mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.center, diff --git a/lib/view/pages/tiphereth/tiphereth_frame_page.dart b/lib/view/pages/tiphereth/tiphereth_frame_page.dart index dc28e77..c85adf7 100644 --- a/lib/view/pages/tiphereth/tiphereth_frame_page.dart +++ b/lib/view/pages/tiphereth/tiphereth_frame_page.dart @@ -13,7 +13,7 @@ class TipherethFramePage extends StatelessWidget { return Scaffold( body: const Column( children: [ - SizedBox(height: 64), + SizedBox(height: 80), MyProfileCard(), MyAccountsCard(), Expanded(child: SizedBox()), diff --git a/lib/view/pages/web_landing_page.dart b/lib/view/pages/web_landing_page.dart index 3f3324f..5079c44 100644 --- a/lib/view/pages/web_landing_page.dart +++ b/lib/view/pages/web_landing_page.dart @@ -14,7 +14,6 @@ import '../../route.dart'; import '../components/toast.dart'; import '../helper/spacing.dart'; import '../layout/bootstrap_container.dart'; -import 'server_select_overlay.dart'; class WebLandingPage extends StatelessWidget { const WebLandingPage({super.key});