]> git.proxmox.com Git - flutter/pve_flutter_frontend.git/commitdiff
storage: drop wide layout for now
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 1 Jun 2021 11:47:28 +0000 (13:47 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 1 Jun 2021 11:47:31 +0000 (13:47 +0200)
it is rather broken, with no way to go back or navigate somewhere
else and a centered view with lots of outer margin, so for now just
use the slim one everywhere

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
lib/widgets/pve_file_selector_widget.dart

index e7ce2ef0b31eec8c6575791c1b9592938d0b958d..fc0b05f1105a3435ae97315f823cdd56e667186c 100644 (file)
@@ -31,40 +31,25 @@ class _PveFileSelectorState extends State<PveFileSelector> {
   @override
   Widget build(BuildContext context) {
     return ProxmoxLayoutBuilder(
-      builder: (context, layout) => layout != ProxmoxLayout.slim
-          ? Center(
-              child: Container(
-                height: MediaQuery.of(context).size.height * 0.5,
-                width: MediaQuery.of(context).size.width * 0.8,
-                child: Card(
-                  color: Color.fromARGB(255, 243, 246, 255),
-                  child: PveFileSelectorWidget(
-                    isSelector: widget.isSelector,
-                    fBloc: widget.fBloc,
-                    sBloc: widget.sBloc,
-                  ),
-                ),
-              ),
-            )
-          : Scaffold(
-              appBar: AppBar(
-                iconTheme: IconThemeData(color: Colors.black),
-                backgroundColor: Colors.transparent,
-                elevation: 0,
-                title: Text(
-                  "Storage",
-                  style: TextStyle(
-                      // fontSize: 30,
-                      // fontWeight: FontWeight.bold,
-                      color: Colors.black),
-                ),
-              ),
-              body: PveFileSelectorWidget(
-                isSelector: widget.isSelector,
-                fBloc: widget.fBloc,
-                sBloc: widget.sBloc,
-              ),
-            ),
+      builder: (context, layout) => Scaffold(
+        appBar: AppBar(
+          iconTheme: IconThemeData(color: Colors.black),
+          backgroundColor: Colors.transparent,
+          elevation: 0,
+          title: Text(
+            "Storage",
+            style: TextStyle(
+                // fontSize: 30,
+                // fontWeight: FontWeight.bold,
+                color: Colors.black),
+          ),
+        ),
+        body: PveFileSelectorWidget(
+          isSelector: widget.isSelector,
+          fBloc: widget.fBloc,
+          sBloc: widget.sBloc,
+        ),
+      ),
     );
   }