adaptive method

Widget adaptive(
  1. BuildContext context
)

Implementation

Widget adaptive(BuildContext context) {
  final style = defaultStyleOf(context);
  if (Theme.of(context).platform == TargetPlatform.iOS) {
    return Theme(
      data: Theme.of(context).copyWith(
        filledButtonTheme:
            FilledButtonThemeData(style: makeStyleMoreiOS(style)),
      ),
      child: this,
    );
  }
  return this;
}