|
1 | 1 | # Changelog |
2 | 2 |
|
3 | | -## 0.2.0 |
4 | | -- Flutter 3 release. |
5 | | - |
6 | | -## 0.1.9 |
7 | | -- Flutter 2 compatibility version. This is the last version to support Flutter 2. |
8 | | - |
9 | | -## 0.1.8 |
10 | | -- Flutter 3 support. |
11 | | - |
12 | | -## 0.1.7 |
13 | | -- Fix sort crash in web due to JS converting variables into immutable vals that cannot be sorted. |
14 | | - |
15 | | -## 0.1.6 |
16 | | -- Enable using `background` widget for the 1st render frame if set. This allows for a smoother transition between native mobile splash screen and Flutter application UI. |
17 | | -- Add generic T to support type safety and automatic type conversion in ResponsiveValue. |
18 | | - |
19 | | -## 0.1.5 |
20 | | -- Add `useShortestSide` property to calculate responsiveness based on the shortest side of the screen, instead of the actual landscape orientation. |
21 | | - |
22 | | -## 0.1.4 |
23 | | -- Fix ListIterable.firstWhere `Bad state: No element` breakpoint initialization error. |
24 | | - |
25 | | -## 0.1.2 |
26 | | -- Full support for `landscapeBreakpoints` - breakpoints in landscape mode. Create landscape overrides with `minWidthLandscape`, `maxWidthLandscape`, `defaultScaleLandscape`, etc. |
27 | | -- Use `ResponsiveTargetPlatform` to enable landscape support for platforms including web. |
28 | | - |
29 | | -## 0.1.1 |
30 | | -- Add initial support for `landscapeBreakpoints` which enables overriding default breakpoints on platforms with landscape orientations. |
31 | | - |
32 | | -## 0.1.0 |
33 | | -- Null Safety Migration. |
34 | | - |
35 | | -## 0.0.15 |
36 | | -- Fix `backgroundColor` incorrectly requiring a widget. |
37 | | -- Fix context null error when widget parent is destroyed on layout update. |
38 | | - |
39 | | -## 0.0.14 |
40 | | -- Dartfmt files. No functional changes. |
| 3 | +## 1.0.0 |
| 4 | +- New ResponsiveBreakpoints widget. |
| 5 | +- Deprecated ResponsiveWrapper widget. |
41 | 6 |
|
42 | | -## 0.0.12 |
43 | | -- Add `alignment` property for setting internal Stack alignment. |
44 | | -- Fix ResponsiveGridView Padding null. |
45 | | -- Fix iOS didChangeMetrics Context null. |
46 | | - |
47 | | -## 0.0.11 |
48 | | -- Dartfmt files. No functional changes. |
49 | | - |
50 | | -## 0.0.10 |
51 | | -- Calculate padding for SafeArea scaling correctly. |
52 | | -- Calculate ViewInsets for keyboa rd offset correctly. |
53 | | - |
54 | | -## 0.0.9 |
55 | | -- Create ResponsiveGridView that extends GridView with more grid layout controls. |
56 | | -- Use ResponsiveGridView for shrink and fixed item sizing options with the ability to control alignment and max row count. |
57 | | -- Breaking - simplified `autoScaleDown` behavior to only scale down from the specified breakpoint. |
58 | | - |
59 | | -## 0.0.8 |
60 | | -- New breakpoint calculation algorithm. |
61 | | -- Create `debugLog` parameter. Pretty print a visual view of breakpoint segments for debugging purposes. |
62 | | -- Add over 100+ tests. |
63 | | -- Fix first frame black screen issue. |
64 | | - |
65 | | -## 0.0.7 |
66 | | -- Add links to [Flutter Website](https://github.com/Codelessly/FlutterWebsite) example. |
67 | | - |
68 | | -## 0.0.6 |
69 | | -- Create `autoScaleDown` and `tag` behaviors. |
70 | | -- Create ResponsiveBreakpointSegment and algorithm to calculate breakpoint segments. |
71 | | -- Create experimental ResponsiveValue, ResponsiveVisibility, and ResponsiveRowColumn widgets. |
72 | | -- Breaking - removed `autoScale` to migrate ResponsiveBreakpoint behavior to constructors. |
73 | | - |
74 | | -## 0.0.5 |
75 | | -- Add `defaultName` parameter. |
76 | | -- Create tests. |
77 | | -- Improve breakpoint calculations and API. |
78 | | - |
79 | | -## 0.0.4 |
80 | | -- New Documentation. |
81 | | -- Rename `scale` to `autoScale`. |
82 | | - |
83 | | -## 0.0.3 |
84 | | -- Correct MinWidth and MaxWidth scaling. |
85 | | -- Import [Minimal Website Demo](https://github.com/Codelessly/FlutterMinimalWebsite) |
86 | | - |
87 | | -## 0.0.2 |
88 | | -- MinWidth and MaxWidth scaling. |
89 | | -- Create Demo app. |
90 | | - |
91 | | -## 0.0.1 |
92 | | -- Initial Prerelease. |
| 7 | +## 0.2.0 |
| 8 | +Legacy `ResponsiveWrapper` implementation. |
| 9 | + |
| 10 | +Usage instructions: |
| 11 | + |
| 12 | +```yaml |
| 13 | +responsive_framework: 0.2.0 |
| 14 | +``` |
| 15 | +
|
| 16 | +Add `ResponsiveWrapper.builder` to your MaterialApp or CupertinoApp. |
| 17 | +```dart |
| 18 | +import 'package:responsive_framework/responsive_framework.dart'; |
| 19 | +
|
| 20 | +class MyApp extends StatelessWidget { |
| 21 | + @override |
| 22 | + Widget build(BuildContext context) { |
| 23 | + return MaterialApp( |
| 24 | + builder: (context, child) => ResponsiveWrapper.builder( |
| 25 | + child, |
| 26 | + maxWidth: 1200, |
| 27 | + minWidth: 480, |
| 28 | + defaultScale: true, |
| 29 | + breakpoints: [ |
| 30 | + ResponsiveBreakpoint.resize(480, name: MOBILE), |
| 31 | + ResponsiveBreakpoint.autoScale(800, name: TABLET), |
| 32 | + ResponsiveBreakpoint.resize(1000, name: DESKTOP), |
| 33 | + ], |
| 34 | + background: Container(color: Color(0xFFF5F5F5))), |
| 35 | + initialRoute: "/", |
| 36 | + ); |
| 37 | + } |
| 38 | +} |
| 39 | +``` |
0 commit comments