@@ -68,44 +68,48 @@ class SettingsPage extends ConsumerWidget {
68
68
'$kDefaultUri → ${settings .defaultUriScheme }://$kDefaultUri ' ),
69
69
trailing: Container (
70
70
decoration: BoxDecoration (
71
- border: Border .all (color: Colors .grey, width: 2.0 ), // Adjust border width as needed
72
- borderRadius: BorderRadius .circular (8.0 ), // Adjust border radius as needed
71
+ border: Border .all (
72
+ color: Theme .of (context).colorScheme.onSurface,
73
+ ),
74
+ borderRadius: kBorderRadius8,
73
75
),
74
- child: DropdownButton <String >(
75
- onChanged: (value) {
76
- ref
77
- .read (settingsProvider.notifier)
78
- .update (defaultUriScheme: value);
79
- },
80
- value: settings.defaultUriScheme,
81
- items: kSupportedUriSchemes.map <DropdownMenuItem <String >>((String value) {
82
- return DropdownMenuItem <String >(
83
- value: value,
84
- child: Padding (
85
- padding: EdgeInsets .symmetric (vertical: 8 , horizontal: 16 ), // Adjust padding to increase size
86
- child: Text (value),
87
- ),
88
- );
89
- }).toList (),
90
- underline: Container (),
91
- iconSize: 30 ,
92
-
76
+ child: DropdownButtonHideUnderline (
77
+ child: DropdownButton <String >(
78
+ borderRadius: kBorderRadius8,
79
+ onChanged: (value) {
80
+ ref
81
+ .read (settingsProvider.notifier)
82
+ .update (defaultUriScheme: value);
83
+ },
84
+ value: settings.defaultUriScheme,
85
+ items: kSupportedUriSchemes
86
+ .map <DropdownMenuItem <String >>((String value) {
87
+ return DropdownMenuItem <String >(
88
+ value: value,
89
+ child: Padding (
90
+ padding: kP10,
91
+ child: Text (value),
92
+ ),
93
+ );
94
+ }).toList (),
95
+ ),
93
96
),
94
97
),
95
98
),
96
-
97
99
ListTile (
98
100
contentPadding: kPb10,
99
101
hoverColor: kColorTransparent,
100
102
title: const Text ('Default Code Generator' ),
101
103
trailing: Container (
102
- padding: EdgeInsets .symmetric (vertical: 8 , horizontal: 15 ), // Adjust padding to increase size
103
104
decoration: BoxDecoration (
104
- border: Border .all (color: Colors .grey, width: 2.0 ), // Add border styling
105
- borderRadius: BorderRadius .circular (5 ), // Optional: Add border radius
105
+ border: Border .all (
106
+ color: Theme .of (context).colorScheme.onSurface,
107
+ ),
108
+ borderRadius: kBorderRadius8,
106
109
),
107
- child: DropdownButtonHideUnderline ( // Hide the default underline
110
+ child: DropdownButtonHideUnderline (
108
111
child: DropdownButton <CodegenLanguage >(
112
+ borderRadius: kBorderRadius8,
109
113
value: settings.defaultCodeGenLang,
110
114
onChanged: (value) {
111
115
ref
@@ -115,14 +119,16 @@ class SettingsPage extends ConsumerWidget {
115
119
items: CodegenLanguage .values.map ((value) {
116
120
return DropdownMenuItem <CodegenLanguage >(
117
121
value: value,
118
- child: Text (value.label),
122
+ child: Padding (
123
+ padding: kP10,
124
+ child: Text (value.label),
125
+ ),
119
126
);
120
127
}).toList (),
121
- onTap : () {}, // Prevent dropdown from opening on tap
122
- ),
128
+ ),
129
+ ),
123
130
),
124
131
),
125
- ),
126
132
CheckboxListTile (
127
133
contentPadding: EdgeInsets .zero,
128
134
title: const Text ("Save Responses" ),
0 commit comments