Skip to content

Commit 1e37d62

Browse files
committed
Replace deprecated accentColor with colorScheme.secondary
1 parent c2985dc commit 1e37d62

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

example/lib/sources/complete_form.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ class CompleteFormState extends State<CompleteForm> {
260260
children: <Widget>[
261261
Expanded(
262262
child: MaterialButton(
263-
color: Theme.of(context).accentColor,
263+
color: Theme.of(context).colorScheme.secondary,
264264
onPressed: () {
265265
if (_formKey.currentState?.saveAndValidate() ?? false) {
266266
print(_formKey.currentState?.value);
@@ -281,10 +281,10 @@ class CompleteFormState extends State<CompleteForm> {
281281
onPressed: () {
282282
_formKey.currentState?.reset();
283283
},
284-
// color: Theme.of(context).accentColor,
284+
// color: Theme.of(context).colorScheme.secondary,
285285
child: Text(
286286
'Reset',
287-
style: TextStyle(color: Theme.of(context).accentColor),
287+
style: TextStyle(color: Theme.of(context).colorScheme.secondary),
288288
),
289289
),
290290
),

example/lib/sources/signup_form.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class _SignupFormState extends State<SignupForm> {
103103
),
104104
const SizedBox(height: 10),
105105
MaterialButton(
106-
color: Theme.of(context).accentColor,
106+
color: Theme.of(context).colorScheme.secondary,
107107
onPressed: () {
108108
if (_formKey.currentState?.saveAndValidate() ?? false) {
109109
print('Valid');

0 commit comments

Comments
 (0)