flutter_adaptive 2.0.1 flutter_adaptive: ^2.0.1 copied to clipboard
A series of widgets and utilities that adapt to the current platform.
2.0.1 #
- Fix issues with
showDatePicker()
andshowActionSheet()
2.0.0 #
BREAKING CHANGES:
-
Remove
isIOS
export in favor of a getter onBuildContext
instances via an extension. This allows widgets to adapt to the current platform for web users too.Replace
import 'package:flutter_adaptive/flutter_adaptive.dart' as adaptive; adaptive.isIOS;
with
// The extension with the isIOS getter is exported from here import 'package:flutter_adaptive/platform.dart'; context.isIOS;
-
scrollPhysics
and all icons now require aBuildContext
Replace
import 'package:flutter_adaptive/flutter_adaptive.dart' as adaptive; adaptive.scrollPhysics; Icon(adaptive.Icons.add);
with
import 'package:flutter_adaptive/flutter_adaptive.dart' as adaptive; adaptive.scrollPhysics(context); Icon(adaptive.Icons.add(context));
1.1.0 #
- Add
onGeneratePreviousPageTitle
global. Use this to generate a route'spreviousPageTitle
from just one place if your use-case allows this.
1.0.2 #
- Update README
1.0.1 #
- Add example
- Add documentation
1.0.0 #
- Initial release