Skip to content

Commit 52b054c

Browse files
authored
Merge branch 'letsar:master' into master
2 parents e69292d + 0bfd05f commit 52b054c

7 files changed

Lines changed: 21 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.7.0
2+
### Changed
3+
* Bump minimal Flutter version to 3.7.0
4+
### Fixed
5+
* Warning with Scrollable.of
6+
17
## 0.6.2
28
### Fixed
39
* Issue with Quilted layout algorithm. (https://github.com/letsar/flutter_staggered_grid_view/issues/232)

examples/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>9.0</string>
24+
<string>11.0</string>
2525
</dict>
2626
</plist>

examples/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 50;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -171,10 +171,12 @@
171171
/* Begin PBXShellScriptBuildPhase section */
172172
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173173
isa = PBXShellScriptBuildPhase;
174+
alwaysOutOfDate = 1;
174175
buildActionMask = 2147483647;
175176
files = (
176177
);
177178
inputPaths = (
179+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
178180
);
179181
name = "Thin Binary";
180182
outputPaths = (
@@ -185,6 +187,7 @@
185187
};
186188
9740EEB61CF901F6004384FC /* Run Script */ = {
187189
isa = PBXShellScriptBuildPhase;
190+
alwaysOutOfDate = 1;
188191
buildActionMask = 2147483647;
189192
files = (
190193
);
@@ -272,7 +275,7 @@
272275
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273276
GCC_WARN_UNUSED_FUNCTION = YES;
274277
GCC_WARN_UNUSED_VARIABLE = YES;
275-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
278+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
276279
MTL_ENABLE_DEBUG_INFO = NO;
277280
SDKROOT = iphoneos;
278281
SUPPORTED_PLATFORMS = iphoneos;
@@ -346,7 +349,7 @@
346349
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
347350
GCC_WARN_UNUSED_FUNCTION = YES;
348351
GCC_WARN_UNUSED_VARIABLE = YES;
349-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
352+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
350353
MTL_ENABLE_DEBUG_INFO = YES;
351354
ONLY_ACTIVE_ARCH = YES;
352355
SDKROOT = iphoneos;
@@ -395,7 +398,7 @@
395398
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
396399
GCC_WARN_UNUSED_FUNCTION = YES;
397400
GCC_WARN_UNUSED_VARIABLE = YES;
398-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
401+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
399402
MTL_ENABLE_DEBUG_INFO = NO;
400403
SDKROOT = iphoneos;
401404
SUPPORTED_PLATFORMS = iphoneos;

examples/ios/Runner/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@
4343
<false/>
4444
<key>CADisableMinimumFrameDurationOnPhone</key>
4545
<true/>
46+
<key>UIApplicationSupportsIndirectInputEvents</key>
47+
<true/>
4648
</dict>
4749
</plist>

lib/src/widgets/sliver_aligned_grid.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class _Gap extends StatelessWidget {
188188

189189
@override
190190
Widget build(BuildContext context) {
191-
final axis = axisDirectionToAxis(Scrollable.of(context)!.axisDirection);
191+
final axis = axisDirectionToAxis(Scrollable.of(context).axisDirection);
192192
return axis == Axis.vertical
193193
? SizedBox(height: mainAxisExtent)
194194
: SizedBox(width: mainAxisExtent);

lib/src/widgets/staggered_grid.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class StaggeredGrid extends MultiChildRenderObjectWidget {
8282
mainAxisSpacing: mainAxisSpacing,
8383
crossAxisSpacing: crossAxisSpacing,
8484
axisDirection: axisDirection ??
85-
Scrollable.of(context)?.axisDirection ??
85+
Scrollable.maybeOf(context)?.axisDirection ??
8686
AxisDirection.down,
8787
textDirection: Directionality.of(context),
8888
);
@@ -98,7 +98,7 @@ class StaggeredGrid extends MultiChildRenderObjectWidget {
9898
..mainAxisSpacing = mainAxisSpacing
9999
..crossAxisSpacing = crossAxisSpacing
100100
..axisDirection = axisDirection ??
101-
Scrollable.of(context)?.axisDirection ??
101+
Scrollable.maybeOf(context)?.axisDirection ??
102102
AxisDirection.down
103103
..textDirection = Directionality.of(context);
104104
}

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: flutter_staggered_grid_view
22
description: Provides a collection of Flutter grids layouts (staggered, masonry, quilted, woven, etc.).
3-
version: 0.6.2
3+
version: 0.7.0
44
homepage: https://github.com/letsar/flutter_staggered_grid_view
55

66
environment:
77
sdk: ">=2.12.0 <3.0.0"
8-
flutter: ">=2.0.0"
8+
flutter: ">=3.7.0"
99

1010
dependencies:
1111
flutter:

0 commit comments

Comments
 (0)