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 1
1
# Changelog
2
2
3
+ ## 0.1.9
4
+ - Flutter 2 compatibility version. This is the last version to support Flutter 2.
5
+
3
6
## 0.1.8
4
7
- Flutter 3 support.
5
8
Original file line number Diff line number Diff line change @@ -619,8 +619,8 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
619
619
}
620
620
621
621
// 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 ((_) {
624
624
// Breakpoints must be initialized before the first frame is drawn.
625
625
setBreakpoints ();
626
626
// Directly updating dimensions is safe because frame callbacks
@@ -632,7 +632,7 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
632
632
633
633
@override
634
634
void dispose () {
635
- WidgetsBinding .instance.removeObserver (this );
635
+ WidgetsBinding .instance! .removeObserver (this );
636
636
super .dispose ();
637
637
}
638
638
@@ -642,7 +642,7 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
642
642
// When physical dimensions change, update state.
643
643
// The required MediaQueryData is only available
644
644
// on the next frame for physical dimension changes.
645
- WidgetsBinding .instance.addPostFrameCallback ((_) {
645
+ WidgetsBinding .instance! .addPostFrameCallback ((_) {
646
646
// Widget could be destroyed by resize. Verify widget
647
647
// exists before updating dimensions.
648
648
if (mounted) {
Original file line number Diff line number Diff line change 1
1
name : responsive_framework
2
2
description : 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
4
4
homepage : https://codelessly.com
5
5
repository : https://github.com/Codelessly/ResponsiveFramework
6
6
issue_tracker : https://github.com/Codelessly/ResponsiveFramework/issues
You can’t perform that action at this time.
0 commit comments