Skip to content

Commit

Permalink
fix: test ui on android
Browse files Browse the repository at this point in the history
  • Loading branch information
MuZhou233 committed Feb 2, 2024
1 parent e37f921 commit b464c16
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
6 changes: 4 additions & 2 deletions lib/view/layout/overlapping_panels.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,10 @@ class OverlappingPanelsState extends State<OverlappingPanels>
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<double> tween = Tween<double>(begin: translate, end: goal);

Expand Down
6 changes: 3 additions & 3 deletions lib/view/pages/server_select_overlay.dart
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class ServerSelectOverlayState extends State<ServerSelectOverlay>
child: BootstrapContainer(
children: [
BootstrapColumn(
xxs: 12,
xxs: 11,
md: 8,
lg: 6,
child: _selected != null
Expand Down Expand Up @@ -343,7 +343,7 @@ class _ServerSelectFormState extends State<ServerSelectForm> {
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(32),
padding: const EdgeInsets.all(16),
child: Form(
key: _formKey,
child: Column(
Expand Down Expand Up @@ -468,7 +468,7 @@ class _LoginFormState extends State<LoginForm> {
},
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,
Expand Down
2 changes: 1 addition & 1 deletion lib/view/pages/tiphereth/tiphereth_frame_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down
1 change: 0 additions & 1 deletion lib/view/pages/web_landing_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down

0 comments on commit b464c16

Please sign in to comment.