Skip to content

Commit 9f90a2f

Browse files
committed
Clean up
1 parent c2baf4b commit 9f90a2f

File tree

4 files changed

+22
-25
lines changed

4 files changed

+22
-25
lines changed

lib/src/components/molecules/info_banner.dart

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'package:flutter/material.dart';
2-
import 'package:flutter/widgets.dart';
32
import 'package:i18next/i18next.dart';
43

54
import '../atoms/typography.dart';

lib/src/modules/common/app_shell.dart

+11-13
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ import 'constants.dart';
2222

2323
final _scaffoldKey = GlobalKey<ScaffoldState>();
2424

25+
const pages = [
26+
FVMScreen(),
27+
ProjectsScreen(),
28+
ReleasesScreen(),
29+
];
30+
2531
/// Main widget of the app
2632
class AppShell extends HookWidget {
2733
/// Constructor
@@ -59,17 +65,6 @@ class AppShell extends HookWidget {
5965
}
6066
});
6167

62-
// Render corret page widget based on index
63-
Widget renderPage(int index) {
64-
const pages = [
65-
FVMScreen(),
66-
ProjectsScreen(),
67-
ReleasesScreen(),
68-
];
69-
70-
return pages[index];
71-
}
72-
7368
NavigationRailDestination renderNavButton(String label, IconData iconData) {
7469
return NavigationRailDestination(
7570
icon: Icon(iconData, size: 20),
@@ -115,7 +110,10 @@ class AppShell extends HookWidget {
115110
),
116111
],
117112
),
118-
const VerticalDivider(thickness: 1, width: 1),
113+
const VerticalDivider(
114+
thickness: 1,
115+
width: 1,
116+
),
119117
Expanded(
120118
child: Stack(
121119
fit: StackFit.expand,
@@ -144,7 +142,7 @@ class AppShell extends HookWidget {
144142
child: child,
145143
);
146144
},
147-
child: renderPage(selectedIndex.value),
145+
child: pages[selectedIndex.value],
148146
),
149147
),
150148
],

macos/Podfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ SPEC CHECKSUMS:
4343

4444
PODFILE CHECKSUM: 6eac6b3292e5142cfc23bdeb71848a40ec51c14c
4545

46-
COCOAPODS: 1.11.0
46+
COCOAPODS: 1.11.2

pubspec.lock

+10-10
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ packages:
77
name: _fe_analyzer_shared
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "22.0.0"
10+
version: "31.0.0"
1111
analyzer:
1212
dependency: transitive
1313
description:
1414
name: analyzer
1515
url: "https://pub.dartlang.org"
1616
source: hosted
17-
version: "1.7.1"
17+
version: "2.8.0"
1818
animations:
1919
dependency: "direct main"
2020
description:
@@ -42,7 +42,7 @@ packages:
4242
name: async
4343
url: "https://pub.dartlang.org"
4444
source: hosted
45-
version: "2.6.1"
45+
version: "2.8.2"
4646
boolean_selector:
4747
dependency: transitive
4848
description:
@@ -119,14 +119,14 @@ packages:
119119
name: characters
120120
url: "https://pub.dartlang.org"
121121
source: hosted
122-
version: "1.1.0"
122+
version: "1.2.0"
123123
charcode:
124124
dependency: transitive
125125
description:
126126
name: charcode
127127
url: "https://pub.dartlang.org"
128128
source: hosted
129-
version: "1.2.0"
129+
version: "1.3.1"
130130
checked_yaml:
131131
dependency: transitive
132132
description:
@@ -491,7 +491,7 @@ packages:
491491
name: matcher
492492
url: "https://pub.dartlang.org"
493493
source: hosted
494-
version: "0.12.10"
494+
version: "0.12.11"
495495
material_design_icons_flutter:
496496
dependency: "direct main"
497497
description:
@@ -512,7 +512,7 @@ packages:
512512
name: meta
513513
url: "https://pub.dartlang.org"
514514
source: hosted
515-
version: "1.3.0"
515+
version: "1.7.0"
516516
mime:
517517
dependency: transitive
518518
description:
@@ -825,7 +825,7 @@ packages:
825825
name: test_api
826826
url: "https://pub.dartlang.org"
827827
source: hosted
828-
version: "0.3.0"
828+
version: "0.4.3"
829829
timing:
830830
dependency: transitive
831831
description:
@@ -902,7 +902,7 @@ packages:
902902
name: vector_math
903903
url: "https://pub.dartlang.org"
904904
source: hosted
905-
version: "2.1.0"
905+
version: "2.1.1"
906906
watcher:
907907
dependency: "direct main"
908908
description:
@@ -948,5 +948,5 @@ packages:
948948
source: hosted
949949
version: "3.1.0"
950950
sdks:
951-
dart: ">=2.13.0 <3.0.0"
951+
dart: ">=2.14.0 <3.0.0"
952952
flutter: ">=2.0.0"

0 commit comments

Comments
 (0)