Removed Flexible widget.

FIXES: Bug where signup, signin,
edit room and new room screen would fail to open,
because the Flexible Widget cannot be nested in a
Centered Widget.

NOTE: Turns out the widget was not neccessary at all
This commit is contained in:
Jakob Meier 2023-03-24 16:42:12 +01:00
parent fa734eca15
commit 672892e21b
No known key found for this signature in database
GPG key ID: 66BDC7E6A01A6152
3 changed files with 318 additions and 317 deletions

View file

@ -5,7 +5,6 @@ import 'package:outbag_app/tools/fetch_wrapper.dart';
import 'package:outbag_app/tools/snackbar.dart';
import 'package:routemaster/routemaster.dart';
import '../backend/resolve_url.dart';
import '../backend/errors.dart';
import 'package:crypto/crypto.dart';
import 'dart:convert';
@ -70,7 +69,6 @@ class _AuthPageState extends State<AuthPage> {
),
),
body: Center(
child: Flexible(
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 400),
child: Column(
@ -168,7 +166,9 @@ class _AuthPageState extends State<AuthPage> {
]
: []),
],
)))),
)
)
),
floatingActionButton: FloatingActionButton.extended(
onPressed: () async {
setState(() {

View file

@ -140,7 +140,6 @@ class _EditRoomPageState extends State<EditRoomPage> {
),
),
body: Center(
child: Flexible(
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 400),
child: Column(
@ -238,7 +237,9 @@ class _EditRoomPageState extends State<EditRoomPage> {
),
),
],
)))),
)
)
),
floatingActionButton: FloatingActionButton.extended(
onPressed: () async {
final scaffMgr = ScaffoldMessenger.of(context);

View file

@ -1,6 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:outbag_app/backend/errors.dart';
import 'package:outbag_app/backend/request.dart';
import 'package:outbag_app/backend/room.dart';
import 'package:outbag_app/backend/user.dart';
@ -58,7 +57,6 @@ class _NewRoomPageState extends State {
),
),
body: Center(
child: Flexible(
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 400),
child: Column(
@ -176,7 +174,9 @@ class _NewRoomPageState extends State {
selectedIcon: Icon(_ctrVis.icon),
),
],
)))),
)
)
),
floatingActionButton: FloatingActionButton.extended(
onPressed: () async {
final scaffMgr = ScaffoldMessenger.of(context);