Skip to content

Commit 86d6706

Browse files
authored
Merge pull request #15 from deadlium/buildspace
Buildspace
2 parents 7d7f557 + f9013f4 commit 86d6706

5 files changed

Lines changed: 10 additions & 22 deletions

File tree

.github/workflows/dart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ jobs:
2525
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
2626

2727
- name: Install dependencies
28-
run: dart pub get
28+
run: flutter pub get
2929

3030
# Uncomment this step to verify the use of 'dart format' on each commit.
3131
# - name: Verify formatting
3232
# run: dart format --output=none --set-exit-if-changed .
3333

3434
# Consider passing '--fatal-infos' for slightly stricter analysis.
3535
- name: Analyze project source
36-
run: dart analyze
36+
run: flutter analyze
3737

3838
# Your project will need to have tests in test/ and a dependency on
3939
# package:test for this step to succeed. Note that Flutter projects will
4040
# want to change this to 'flutter test'.
4141
- name: Run tests
42-
run: dart test
42+
run: flutter test

example/lib/main.dart

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ void main() {
66
}
77

88
class MyApp extends StatelessWidget {
9-
const MyApp({Key? key}) : super(key: key);
9+
const MyApp({super.key});
1010

1111
@override
1212
Widget build(BuildContext context) {
@@ -20,7 +20,7 @@ class MyApp extends StatelessWidget {
2020
}
2121

2222
class MyHomePage extends StatefulWidget {
23-
const MyHomePage({Key? key, required this.title}) : super(key: key);
23+
const MyHomePage({super.key, required this.title});
2424

2525
final String title;
2626

@@ -116,12 +116,7 @@ class _MyHomePageState extends State<MyHomePage> {
116116
message: 'Custom Snackbar',
117117
description:
118118
'This is a custom snackbar with purple color.',
119-
color: Color.fromRGBO(
120-
Colors.purple.red,
121-
Colors.purple.green,
122-
Colors.purple.blue,
123-
0.9,
124-
),
119+
color: Colors.purple,
125120
duration: Duration(milliseconds: 3000),
126121
);
127122
},
@@ -136,12 +131,7 @@ class _MyHomePageState extends State<MyHomePage> {
136131
context: context,
137132
message: 'Long Duration',
138133
description: 'This snackbar stays visible for 5 seconds.',
139-
color: Color.fromRGBO(
140-
Colors.teal.red,
141-
Colors.teal.green,
142-
Colors.teal.blue,
143-
0.9,
144-
),
134+
color: Colors.teal,
145135
duration: Duration(seconds: 5),
146136
);
147137
},

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ packages:
145145
path: ".."
146146
relative: true
147147
source: path
148-
version: "0.0.1"
148+
version: "0.0.2"
149149
path:
150150
dependency: transitive
151151
description:

lib/motion_snackbar.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
library animated_snackbars;
2-
31
export 'src/motion_snackbar.dart';
42
export 'src/widget/snackbar_widget.dart';

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: motion_snackbar
2-
description: "Flutter package for animated snackbars. Includes success, error, info, warning, & custom styles with smooth directional animations. Customize message, description, color & duration for improved feedback."
3-
version: 0.0.2
2+
description: "Flutter animated snackbars: success, error, info, warning & custom. Smooth directional transitions, fully customizable!"
3+
version: 0.0.3
44
homepage: https://github.com/deadlium
55
repository: https://github.com/deadlium/animated_snackbars
66

0 commit comments

Comments
 (0)