[pve-devel] [PATCH pve_flutter_frontend 2/4] cleanup: dart-analyze: add explicit type annotation

Shan Shaji s.shaji at proxmox.com
Wed Sep 24 12:36:23 CEST 2025


The lint warns about every omitted return type, parameter type, and
variable type of a top-level declaration. Inorder to fix the issue add
explicit type annotation.

Signed-off-by: Shan Shaji <s.shaji at proxmox.com>
---
 lib/pages/main_layout_slim.dart | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/pages/main_layout_slim.dart b/lib/pages/main_layout_slim.dart
index 14a2bca..0aca666 100644
--- a/lib/pages/main_layout_slim.dart
+++ b/lib/pages/main_layout_slim.dart
@@ -103,7 +103,10 @@ class _MainLayoutSlimState extends State<MainLayoutSlim> {
   }
 }
 
-Widget getMainContent(snapshot, context) {
+Widget getMainContent(
+  AsyncSnapshot<int> snapshot,
+  BuildContext context,
+) {
   if (snapshot.hasData) {
     switch (snapshot.data) {
       case 0:
-- 
2.47.2





More information about the pve-devel mailing list