]> git.proxmox.com Git - flutter/proxmox_login_manager.git/commitdiff
add close button to login form
authorTim Marx <t.marx@proxmox.com>
Wed, 9 Sep 2020 12:12:52 +0000 (14:12 +0200)
committerTim Marx <t.marx@proxmox.com>
Wed, 9 Sep 2020 12:12:52 +0000 (14:12 +0200)
Signed-off-by: Tim Marx <t.marx@proxmox.com>
lib/proxmox_login_form.dart

index 12b5fb59d828f16d843b382f1859e703a12f454b..bb5c48b4b48cb12fd93bd5213fbfb794685852c4 100644 (file)
@@ -202,6 +202,15 @@ class _ProxmoxLoginPageState extends State<ProxmoxLoginPage> {
       data: ThemeData.dark().copyWith(accentColor: Color(0xFFE47225)),
       child: Scaffold(
         backgroundColor: Theme.of(context).primaryColor,
+        extendBodyBehindAppBar: true,
+        appBar: AppBar(
+          elevation: 0.0,
+          backgroundColor: Colors.transparent,
+          leading: IconButton(
+            icon: Icon(Icons.close),
+            onPressed: () => Navigator.of(context).pop(),
+          ),
+        ),
         body: Stack(
           children: [
             SingleChildScrollView(