File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -152,8 +152,7 @@ class MyHomePageState extends State<MyHomePage> {
152
152
Row (
153
153
children: < Widget > [
154
154
Expanded (
155
- child: MaterialButton (
156
- color: Theme .of (context).colorScheme.secondary,
155
+ child: ElevatedButton (
157
156
onPressed: () {
158
157
if (_formKey.currentState? .saveAndValidate () ??
159
158
false ) {
@@ -163,10 +162,7 @@ class MyHomePageState extends State<MyHomePage> {
163
162
debugPrint ('validation failed' );
164
163
}
165
164
},
166
- child: const Text (
167
- 'Submit' ,
168
- style: TextStyle (color: Colors .white),
169
- ),
165
+ child: const Text ('Submit' ),
170
166
),
171
167
),
172
168
const SizedBox (width: 20 ),
@@ -176,11 +172,7 @@ class MyHomePageState extends State<MyHomePage> {
176
172
_formKey.currentState? .reset ();
177
173
},
178
174
// color: Theme.of(context).colorScheme.secondary,
179
- child: Text (
180
- 'Reset' ,
181
- style: TextStyle (
182
- color: Theme .of (context).colorScheme.secondary),
183
- ),
175
+ child: const Text ('Reset' ),
184
176
),
185
177
),
186
178
],
You can’t perform that action at this time.
0 commit comments