File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 0.1.9
4+ - Flutter 2 compatibility version. This is the last version to support Flutter 2.
5+
36## 0.1.8
47- Flutter 3 support.
58
Original file line number Diff line number Diff line change @@ -619,8 +619,8 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
619619 }
620620
621621 // Dimensions are only available after first frame paint.
622- WidgetsBinding .instance.addObserver (this );
623- WidgetsBinding .instance.addPostFrameCallback ((_) {
622+ WidgetsBinding .instance! .addObserver (this );
623+ WidgetsBinding .instance! .addPostFrameCallback ((_) {
624624 // Breakpoints must be initialized before the first frame is drawn.
625625 setBreakpoints ();
626626 // Directly updating dimensions is safe because frame callbacks
@@ -632,7 +632,7 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
632632
633633 @override
634634 void dispose () {
635- WidgetsBinding .instance.removeObserver (this );
635+ WidgetsBinding .instance! .removeObserver (this );
636636 super .dispose ();
637637 }
638638
@@ -642,7 +642,7 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
642642 // When physical dimensions change, update state.
643643 // The required MediaQueryData is only available
644644 // on the next frame for physical dimension changes.
645- WidgetsBinding .instance.addPostFrameCallback ((_) {
645+ WidgetsBinding .instance! .addPostFrameCallback ((_) {
646646 // Widget could be destroyed by resize. Verify widget
647647 // exists before updating dimensions.
648648 if (mounted) {
Original file line number Diff line number Diff line change 11name : responsive_framework
22description : Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple.
3- version : 0.1.8
3+ version : 0.1.9
44homepage : https://codelessly.com
55repository : https://github.com/Codelessly/ResponsiveFramework
66issue_tracker : https://github.com/Codelessly/ResponsiveFramework/issues
You can’t perform that action at this time.
0 commit comments