File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
lib/Screens/Info/Tabs/Watch/Widgets Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,18 @@ class _SourceSelectorState extends ConsumerState<SourceSelector> {
45
45
.toList ()
46
46
.reversed
47
47
.toList ();
48
-
48
+ if (installedSources.isEmpty) {
49
+ return const Column (
50
+ children: [
51
+ buildDropdownMenu (
52
+ padding: EdgeInsets .all (0 ),
53
+ currentValue: 'No sources installed' ,
54
+ options: ['No sources installed' ],
55
+ prefixIcon: Icons .source,
56
+ ),
57
+ ],
58
+ );
59
+ }
49
60
String nameAndLang (Source source) {
50
61
bool isDuplicateName =
51
62
installedSources.where ((s) => s.name == source.name).length > 1 ;
@@ -72,18 +83,7 @@ class _SourceSelectorState extends ConsumerState<SourceSelector> {
72
83
}
73
84
var theme = Theme .of (context).colorScheme;
74
85
75
- if (installedSources.isEmpty) {
76
- return const Column (
77
- children: [
78
- buildDropdownMenu (
79
- padding: EdgeInsets .all (0 ),
80
- currentValue: 'No sources installed' ,
81
- options: ['No sources installed' ],
82
- prefixIcon: Icons .source,
83
- ),
84
- ],
85
- );
86
- }
86
+
87
87
return Column (
88
88
children: [
89
89
Row (
You can’t perform that action at this time.
0 commit comments