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:
parent
fa734eca15
commit
672892e21b
3 changed files with 318 additions and 317 deletions
|
@ -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(() {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue