Skip to content

Commit

Permalink
Alignments and sizes are wrong on big screens (#458)
Browse files Browse the repository at this point in the history
* fix: alignment

* fix: alignment

* fix: max drawer width
  • Loading branch information
jkoenig134 authored Feb 26, 2025
1 parent b687563 commit dc492a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/enmeshed/lib/account/app_drawer/app_drawer.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:math' show min;

import 'package:flutter/material.dart';

import 'drawer_hints_page.dart';
Expand All @@ -18,7 +20,7 @@ class _AppDrawerState extends State<AppDrawer> {

@override
Widget build(BuildContext context) {
final maxWidth = MediaQuery.sizeOf(context).width * 0.85;
final double maxWidth = min(MediaQuery.sizeOf(context).width * 0.85, 320);

return SafeArea(
child: Drawer(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class _CompleteProfileContainerState extends State<CompleteProfileContainer> {
elevation: 2,
clipBehavior: Clip.hardEdge,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
Expand Down
1 change: 1 addition & 0 deletions apps/enmeshed/lib/core/widgets/information_container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class InformationContainer extends StatelessWidget {
child: Padding(
padding: const EdgeInsets.all(16),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.start,
Expand Down

0 comments on commit dc492a5

Please sign in to comment.