stryder-dev / flutter_platform_widgets

Target the specific design of Material for Android and Cupertino for iOS widgets through a common set of Platform aware widgets
MIT License
1.57k stars 171 forks source link

A few Improvements and add support for showAdaptiveDialog #437

Open EchoEllet opened 10 months ago

EchoEllet commented 10 months ago

Pull Request

Description

Clean the code a little bit

Improvements

extension BuildContextExt on BuildContext { bool get isMaterialDesign => isMaterial(this); bool get isCupertinoDesign => isCupertino(this); }



## Checklist

<!-- Mark all that applies with `[x]` -->

- [x] I have tested these changes locally. <!-- REQUIRED -->
- [x] I have followed the code style and guidelines. <!-- REQUIRED -->
- [x] I have updated `CHANGELOG.md` with my changes in the next section <!-- REQUIRED -->
- [x] I have run "dart format ." on the project <!-- REQUIRED -->
- [x] I have run `flutter test` and `flutter analyze` and it passed successfully <!-- REQUIRED -->