mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 12:57:24 +00:00
Migrate to flutter 3.27.0
This commit is contained in:
@@ -40,7 +40,7 @@ class SegmentedButton<T> extends StatelessWidget {
|
||||
onPressed: () => onPressed(e.key),
|
||||
builder: (context, states) {
|
||||
var textColor = active ? null : ColorScheme.of(context).outline;
|
||||
var backgroundColor = active ? null : ButtonState.resolveWith((states) {
|
||||
var backgroundColor = active ? null : WidgetStateProperty.resolveWith((states) {
|
||||
return ButtonThemeData.buttonColor(context, states);
|
||||
}).resolve(states);
|
||||
|
||||
|
Reference in New Issue
Block a user