public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Shan Shaji <s.shaji@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH pve_flutter_frontend 2/2] cleanup: run `dart format` to fix formatting of the main_layout file
Date: Wed, 22 Apr 2026 10:55:17 +0200	[thread overview]
Message-ID: <20260422085517.71782-3-s.shaji@proxmox.com> (raw)
In-Reply-To: <20260422085517.71782-1-s.shaji@proxmox.com>

Signed-off-by: Shan Shaji <s.shaji@proxmox.com>
---
 lib/pages/main_layout_slim.dart | 139 ++++++++++++++++----------------
 1 file changed, 70 insertions(+), 69 deletions(-)

diff --git a/lib/pages/main_layout_slim.dart b/lib/pages/main_layout_slim.dart
index c65f744..8355309 100644
--- a/lib/pages/main_layout_slim.dart
+++ b/lib/pages/main_layout_slim.dart
@@ -944,21 +944,21 @@ class MobileAccessManagement extends StatelessWidget {
                     ),
                   )
                 else
-                ListView.builder(
-                    itemCount: aState.tokens.length,
-                    itemBuilder: (context, index) {
-                      final token = aState.tokens[index];
-                      var expireDate = 'never';
-                      if (token.expire != null &&
-                          token.expire?.millisecondsSinceEpoch != 0) {
-                        expireDate = DateFormat.yMd().format(token.expire!);
-                      }
+                  ListView.builder(
+                      itemCount: aState.tokens.length,
+                      itemBuilder: (context, index) {
+                        final token = aState.tokens[index];
+                        var expireDate = 'never';
+                        if (token.expire != null &&
+                            token.expire?.millisecondsSinceEpoch != 0) {
+                          expireDate = DateFormat.yMd().format(token.expire!);
+                        }
 
-                      return ListTile(
-                        title: Text('${token.userid} ${token.tokenid}'),
-                        subtitle: Text('Expires: $expireDate'),
-                      );
-                    }),
+                        return ListTile(
+                          title: Text('${token.userid} ${token.tokenid}'),
+                          subtitle: Text('Expires: $expireDate'),
+                        );
+                      }),
                 if (aState.groups.isEmpty)
                   Align(
                     child: Text(
@@ -967,64 +967,65 @@ class MobileAccessManagement extends StatelessWidget {
                     ),
                   )
                 else
-                ListView.builder(
-                    itemCount: aState.groups.length,
-                    itemBuilder: (context, index) {
-                      final group = aState.groups[index];
-                      final users = (group.users?.isNotEmpty ?? false)
-                          ? group.users!.split(',')
-                          : [];
-                      return ListTile(
-                        title: Text(group.groupid),
-                        subtitle: Text(group.comment ?? ''),
-                        trailing: const Icon(Icons.arrow_right),
-                        onTap: () => showModalBottomSheet(
-                          shape: const RoundedRectangleBorder(
-                              borderRadius: BorderRadius.vertical(
-                                  top: Radius.circular(10))),
-                          context: context,
-                          builder: (context) {
-                            return SizedBox(
-                              height: MediaQuery.of(context).size.height * 0.5,
-                              child: Column(
-                                crossAxisAlignment: CrossAxisAlignment.start,
-                                children: <Widget>[
-                                  Padding(
-                                    padding:
-                                        const EdgeInsets.fromLTRB(0, 5, 0, 5),
-                                    child: Align(
-                                      alignment: Alignment.topCenter,
-                                      child: Container(
-                                        width: 40,
-                                        height: 3,
-                                        color: Colors.black,
-                                      ),
-                                    ),
-                                  ),
-                                  ListTile(
-                                    title:
-                                        Text('Group members (${users.length})'),
-                                  ),
-                                  const Divider(),
-                                  Expanded(
-                                    child: Padding(
-                                      padding: const EdgeInsets.all(14.0),
-                                      child: ListView.builder(
-                                        itemCount: users.length,
-                                        itemBuilder: (context, index) =>
-                                            ListTile(
-                                          title: Text(users[index]),
+                  ListView.builder(
+                      itemCount: aState.groups.length,
+                      itemBuilder: (context, index) {
+                        final group = aState.groups[index];
+                        final users = (group.users?.isNotEmpty ?? false)
+                            ? group.users!.split(',')
+                            : [];
+                        return ListTile(
+                          title: Text(group.groupid),
+                          subtitle: Text(group.comment ?? ''),
+                          trailing: const Icon(Icons.arrow_right),
+                          onTap: () => showModalBottomSheet(
+                            shape: const RoundedRectangleBorder(
+                                borderRadius: BorderRadius.vertical(
+                                    top: Radius.circular(10))),
+                            context: context,
+                            builder: (context) {
+                              return SizedBox(
+                                height:
+                                    MediaQuery.of(context).size.height * 0.5,
+                                child: Column(
+                                  crossAxisAlignment: CrossAxisAlignment.start,
+                                  children: <Widget>[
+                                    Padding(
+                                      padding:
+                                          const EdgeInsets.fromLTRB(0, 5, 0, 5),
+                                      child: Align(
+                                        alignment: Alignment.topCenter,
+                                        child: Container(
+                                          width: 40,
+                                          height: 3,
+                                          color: Colors.black,
                                         ),
                                       ),
                                     ),
-                                  )
-                                ],
-                              ),
-                            );
-                          },
-                        ),
-                      );
-                    }),
+                                    ListTile(
+                                      title: Text(
+                                          'Group members (${users.length})'),
+                                    ),
+                                    const Divider(),
+                                    Expanded(
+                                      child: Padding(
+                                        padding: const EdgeInsets.all(14.0),
+                                        child: ListView.builder(
+                                          itemCount: users.length,
+                                          itemBuilder: (context, index) =>
+                                              ListTile(
+                                            title: Text(users[index]),
+                                          ),
+                                        ),
+                                      ),
+                                    )
+                                  ],
+                                ),
+                              );
+                            },
+                          ),
+                        );
+                      }),
                 ListView.builder(
                     itemCount: aState.roles.length,
                     itemBuilder: (context, index) {
-- 
2.47.3





  parent reply	other threads:[~2026-04-22  8:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-22  8:55 [PATCH pve_flutter_frontend 0/2] fix: broken functionality flagged by google play console Shan Shaji
2026-04-22  8:55 ` [PATCH pve_flutter_frontend 1/2] fix: ui: show empty message if there are no tokens or groups Shan Shaji
2026-04-22  8:55 ` Shan Shaji [this message]
2026-04-22  9:04 ` applied: [PATCH pve_flutter_frontend 0/2] fix: broken functionality flagged by google play console Dominik Csapak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260422085517.71782-3-s.shaji@proxmox.com \
    --to=s.shaji@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal