@@ -40,18 +40,16 @@ ButtonStyle? parseButtonStyle(ThemeData theme, Control control, String propName,
4040 defaultShape);
4141}
4242
43- ButtonStyle ? buttonStyleFromJSON (
44- ThemeData theme,
45- Map <String , dynamic > json,
46- Color defaultForegroundColor,
47- Color defaultBackgroundColor,
48- Color defaultOverlayColor,
49- Color defaultShadowColor,
50- Color defaultSurfaceTintColor,
51- double defaultElevation,
52- EdgeInsets defaultPadding,
53- BorderSide defaultBorderSide,
54- OutlinedBorder defaultShape) {
43+ ButtonStyle ? buttonStyleFromJSON (ThemeData theme, Map <String , dynamic > json,
44+ [Color ? defaultForegroundColor,
45+ Color ? defaultBackgroundColor,
46+ Color ? defaultOverlayColor,
47+ Color ? defaultShadowColor,
48+ Color ? defaultSurfaceTintColor,
49+ double ? defaultElevation,
50+ EdgeInsets ? defaultPadding,
51+ BorderSide ? defaultBorderSide,
52+ OutlinedBorder ? defaultShape]) {
5553 return ButtonStyle (
5654 foregroundColor: getMaterialStateProperty <Color ?>(
5755 json["color" ],
0 commit comments