Skip to content

Commit dfbd816

Browse files
authored
ci: run analysis for min supported flutter version (#112)
* ci: run analysis for min supported flutter version Signed-off-by: Sahil Kumar <[email protected]> * chore: fix analysis for min flutter version Signed-off-by: Sahil Kumar <[email protected]> --------- Signed-off-by: Sahil Kumar <[email protected]>
1 parent f35484c commit dfbd816

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.github/workflows/giffy_dialog.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ jobs:
1717
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1
1818

1919
build:
20+
strategy:
21+
matrix:
22+
flutter-version:
23+
# The version of Flutter to use should use the minimum Dart SDK version supported by the package,
24+
# refer to https://docs.flutter.dev/development/tools/sdk/releases.
25+
- "3.16.0"
26+
- "3.x"
2027
runs-on: ubuntu-latest
2128
steps:
2229
- name: 📚 Git Checkout
@@ -25,8 +32,10 @@ jobs:
2532
- name: 🐦 Setup Flutter
2633
uses: subosito/flutter-action@v2
2734
with:
35+
flutter-version: ${{matrix.flutter-version}}
2836
channel: stable
2937
cache: true
38+
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
3039

3140
- name: 📦 Install Dependencies
3241
run: flutter packages get
@@ -64,6 +73,7 @@ jobs:
6473
with:
6574
channel: stable
6675
cache: true
76+
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
6777

6878
- name: 📁 Build and release
6979
uses: bluefireteam/flutter-gh-pages@v8

lib/src/giffy_bottom_sheet.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class GiffyBottomSheet extends StatelessWidget {
121121

122122
/// Creates an giffy bottom sheet which uses a [RiveAnimation] as the [giffy].
123123
const GiffyBottomSheet.rive(
124-
RiveAnimation rive, {
124+
rive.RiveAnimation rive, {
125125
super.key,
126126
this.giffyBuilder = defaultGiffyBuilder,
127127
this.giffyPadding,

lib/src/giffy_dialog.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class GiffyDialog extends StatelessWidget {
137137

138138
/// Creates a giffy dialog which uses a [RiveAnimation] as the [giffy].
139139
const GiffyDialog.rive(
140-
RiveAnimation rive, {
140+
rive.RiveAnimation rive, {
141141
super.key,
142142
this.giffyBuilder = defaultGiffyBuilder,
143143
this.giffyPadding,

lib/src/giffy_modal.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'dart:ui';
22

33
import 'package:flutter/material.dart';
44
import 'package:lottie/lottie.dart';
5-
import 'package:rive/rive.dart' hide Image;
5+
import 'package:rive/rive.dart' as rive;
66

77
import 'entry_animation.dart';
88

0 commit comments

Comments
 (0)