Skip to content

Commit 5485765

Browse files
committed
removing RaisedButton to make the library compatible with Flutter 3.3.1
1 parent b7930c7 commit 5485765

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

lib/multi_account_selector_widget.dart

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -126,19 +126,18 @@ class _MultiAccountSelectionWidgetState
126126
),
127127
),
128128
Padding(
129-
padding: const EdgeInsets.all(8.0),
130-
child: RaisedButton(
131-
textColor: Colors.white,
132-
color: widget.doneButtonColor,
133-
child: Text(widget.doneText),
134-
onPressed: () {
135-
Navigator.of(context).pop(currentlySelectedIndexList);
136-
},
137-
shape: new RoundedRectangleBorder(
138-
borderRadius: new BorderRadius.circular(30.0),
139-
),
140-
),
141-
),
129+
padding: const EdgeInsets.all(8.0),
130+
child: ElevatedButton(
131+
style: ButtonStyle(
132+
textStyle: MaterialStateProperty.resolveWith(
133+
(states) => TextStyle(color: Colors.white)),
134+
backgroundColor:
135+
MaterialStateProperty.all(widget.doneButtonColor)),
136+
child: Text(widget.doneText),
137+
onPressed: () {
138+
Navigator.of(context).pop(currentlySelectedIndexList);
139+
},
140+
)),
142141
],
143142
),
144143
);

0 commit comments

Comments
 (0)