Skip to content

Commit 26ba285

Browse files
committed
upgrade to flutter null safe flutter 2.0+
1 parent b49737a commit 26ba285

File tree

4 files changed

+42
-115
lines changed

4 files changed

+42
-115
lines changed

README.md

+3-8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
A new Flutter package for both android and iOS which help developer in creating a onboarding screen of their app.
44

5+
![Bitbucket open issues](https://img.shields.io/bitbucket/issues-raw/champ96k/flutter-onboarding-screen)
56

67
## Screenshots
78

@@ -60,13 +61,7 @@ class TestScreen extends StatelessWidget {
6061

6162
### Created & Maintained By
6263

63-
[Tushar Nikam](https://github.com/champ96k)
64-
([linkedin](https://www.linkedin.com/in/tushar-nikam-a29a97131/))
64+
[Tushar Nikam](http://tusharnikam.ml/)
6565

6666

67-
## Getting Started
68-
69-
For help getting started with Flutter, view our online [documentation](https://flutter.io/).
70-
71-
For help on editing package code, view the [documentation](https://flutter.io/developing-packages/).
72-
67+
<p><a href="https://www.twitter.com/champ_96k"><img src="https://img.shields.io/badge/twitter-%231DA1F2.svg?&style=for-the-badge&logo=twitter&logoColor=white" height=25></a> <a href="https://www.linkedin.com/in/tushar-nikam-a29a97131/"><img src="https://img.shields.io/badge/linkedin-%230077B5.svg?&style=for-the-badge&logo=linkedin&logoColor=white" height=25></a> <a href="https://medium.com/@champ96k"><img src="https://img.shields.io/badge/medium-%2312100E.svg?&style=for-the-badge&logo=medium&logoColor=white" height=25></a> <a href="https://champ96k.github.io"><img src="https://img.shields.io/badge/tusharnikam.ml-portfolio-orange" height=25></a> <a href="https://stackoverflow.com/users/11157840/tushar-nikam" target="_blank"><img src="https://logos-download.com/wp-content/uploads/2019/01/Stack_Overflow_Logo-700x283.png" alt="Stackoverflow" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;"height=25 ></a> <a href="https://www.buymeacoffee.com/champ96k" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;"height=25 ></a></p>

lib/flutteronboardingscreens.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class IntroScreenState extends State<IntroScreen> {
7575
mainAxisAlignment: MainAxisAlignment.spaceBetween,
7676
crossAxisAlignment: CrossAxisAlignment.end,
7777
children: <Widget>[
78-
new FlatButton(
78+
new TextButton(
7979
child: new Text(lastPage ? "" : "SKIP",
8080
style: new TextStyle(
8181
color: Colors.black,
@@ -99,7 +99,7 @@ class IntroScreenState extends State<IntroScreen> {
9999
),
100100
),
101101
),
102-
FlatButton(
102+
TextButton(
103103
child: new Text(lastPage ? "GOT IT" : "NEXT",
104104
style: new TextStyle(
105105
color: Colors.black,

pubspec.lock

+32-66
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,55 @@
11
# Generated by pub
22
# See https://dart.dev/tools/pub/glossary#lockfile
33
packages:
4-
archive:
5-
dependency: transitive
6-
description:
7-
name: archive
8-
url: "https://pub.dartlang.org"
9-
source: hosted
10-
version: "2.0.11"
11-
args:
12-
dependency: transitive
13-
description:
14-
name: args
15-
url: "https://pub.dartlang.org"
16-
source: hosted
17-
version: "1.5.2"
184
async:
195
dependency: transitive
206
description:
217
name: async
228
url: "https://pub.dartlang.org"
239
source: hosted
24-
version: "2.4.0"
10+
version: "2.6.1"
2511
boolean_selector:
2612
dependency: transitive
2713
description:
2814
name: boolean_selector
2915
url: "https://pub.dartlang.org"
3016
source: hosted
31-
version: "1.0.5"
17+
version: "2.1.0"
18+
characters:
19+
dependency: transitive
20+
description:
21+
name: characters
22+
url: "https://pub.dartlang.org"
23+
source: hosted
24+
version: "1.1.0"
3225
charcode:
3326
dependency: transitive
3427
description:
3528
name: charcode
3629
url: "https://pub.dartlang.org"
3730
source: hosted
38-
version: "1.1.2"
39-
collection:
31+
version: "1.2.0"
32+
clock:
4033
dependency: transitive
4134
description:
42-
name: collection
35+
name: clock
4336
url: "https://pub.dartlang.org"
4437
source: hosted
45-
version: "1.14.11"
46-
convert:
38+
version: "1.1.0"
39+
collection:
4740
dependency: transitive
4841
description:
49-
name: convert
42+
name: collection
5043
url: "https://pub.dartlang.org"
5144
source: hosted
52-
version: "2.1.1"
53-
crypto:
45+
version: "1.15.0"
46+
fake_async:
5447
dependency: transitive
5548
description:
56-
name: crypto
49+
name: fake_async
5750
url: "https://pub.dartlang.org"
5851
source: hosted
59-
version: "2.1.3"
52+
version: "1.2.0"
6053
flutter:
6154
dependency: "direct main"
6255
description: flutter
@@ -67,48 +60,27 @@ packages:
6760
description: flutter
6861
source: sdk
6962
version: "0.0.0"
70-
image:
71-
dependency: transitive
72-
description:
73-
name: image
74-
url: "https://pub.dartlang.org"
75-
source: hosted
76-
version: "2.1.4"
7763
matcher:
7864
dependency: transitive
7965
description:
8066
name: matcher
8167
url: "https://pub.dartlang.org"
8268
source: hosted
83-
version: "0.12.6"
69+
version: "0.12.10"
8470
meta:
8571
dependency: transitive
8672
description:
8773
name: meta
8874
url: "https://pub.dartlang.org"
8975
source: hosted
90-
version: "1.1.8"
76+
version: "1.3.0"
9177
path:
9278
dependency: transitive
9379
description:
9480
name: path
9581
url: "https://pub.dartlang.org"
9682
source: hosted
97-
version: "1.6.4"
98-
petitparser:
99-
dependency: transitive
100-
description:
101-
name: petitparser
102-
url: "https://pub.dartlang.org"
103-
source: hosted
104-
version: "2.4.0"
105-
quiver:
106-
dependency: transitive
107-
description:
108-
name: quiver
109-
url: "https://pub.dartlang.org"
110-
source: hosted
111-
version: "2.0.5"
83+
version: "1.8.0"
11284
sky_engine:
11385
dependency: transitive
11486
description: flutter
@@ -120,62 +92,56 @@ packages:
12092
name: source_span
12193
url: "https://pub.dartlang.org"
12294
source: hosted
123-
version: "1.5.5"
95+
version: "1.8.1"
12496
stack_trace:
12597
dependency: transitive
12698
description:
12799
name: stack_trace
128100
url: "https://pub.dartlang.org"
129101
source: hosted
130-
version: "1.9.3"
102+
version: "1.10.0"
131103
stream_channel:
132104
dependency: transitive
133105
description:
134106
name: stream_channel
135107
url: "https://pub.dartlang.org"
136108
source: hosted
137-
version: "2.0.0"
109+
version: "2.1.0"
138110
string_scanner:
139111
dependency: transitive
140112
description:
141113
name: string_scanner
142114
url: "https://pub.dartlang.org"
143115
source: hosted
144-
version: "1.0.5"
116+
version: "1.1.0"
145117
term_glyph:
146118
dependency: transitive
147119
description:
148120
name: term_glyph
149121
url: "https://pub.dartlang.org"
150122
source: hosted
151-
version: "1.1.0"
123+
version: "1.2.0"
152124
test_api:
153125
dependency: transitive
154126
description:
155127
name: test_api
156128
url: "https://pub.dartlang.org"
157129
source: hosted
158-
version: "0.2.15"
130+
version: "0.3.0"
159131
typed_data:
160132
dependency: transitive
161133
description:
162134
name: typed_data
163135
url: "https://pub.dartlang.org"
164136
source: hosted
165-
version: "1.1.6"
137+
version: "1.3.0"
166138
vector_math:
167139
dependency: transitive
168140
description:
169141
name: vector_math
170142
url: "https://pub.dartlang.org"
171143
source: hosted
172-
version: "2.0.8"
173-
xml:
174-
dependency: transitive
175-
description:
176-
name: xml
177-
url: "https://pub.dartlang.org"
178-
source: hosted
179-
version: "3.5.0"
144+
version: "2.1.0"
180145
sdks:
181-
dart: ">=2.4.0 <3.0.0"
146+
dart: ">=2.12.0 <3.0.0"
147+
flutter: ">=2.0.0"

pubspec.yaml

+5-39
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: flutter_onboarding_screen
22
description: A flutter package which help developer in creating a onboarding screens of their app.
3-
author: Tushar Nikam <champ96k@gmail.com>
4-
version: 0.0.2
3+
4+
version: 2.0.1
55
homepage: https://github.com/champ96k/flutter-onboarding-screen
66

77
environment:
8-
sdk: ">=2.1.0 <3.0.0"
8+
sdk: ">=2.12.0 <3.0.0"
9+
flutter: ">=2.0.0"
910

1011
dependencies:
1112
flutter:
@@ -15,39 +16,4 @@ dev_dependencies:
1516
flutter_test:
1617
sdk: flutter
1718

18-
# For information on the generic Dart part of this file, see the
19-
# following page: https://dart.dev/tools/pub/pubspec
20-
21-
# The following section is specific to Flutter.
22-
flutter:
23-
24-
# To add assets to your package, add an assets section, like this:
25-
# assets:
26-
# - images/a_dot_burr.jpeg
27-
# - images/a_dot_ham.jpeg
28-
#
29-
# For details regarding assets in packages, see
30-
# https://flutter.dev/assets-and-images/#from-packages
31-
#
32-
# An image asset can refer to one or more resolution-specific "variants", see
33-
# https://flutter.dev/assets-and-images/#resolution-aware.
34-
35-
# To add custom fonts to your package, add a fonts section here,
36-
# in this "flutter" section. Each entry in this list should have a
37-
# "family" key with the font family name, and a "fonts" key with a
38-
# list giving the asset and other descriptors for the font. For
39-
# example:
40-
# fonts:
41-
# - family: Schyler
42-
# fonts:
43-
# - asset: fonts/Schyler-Regular.ttf
44-
# - asset: fonts/Schyler-Italic.ttf
45-
# style: italic
46-
# - family: Trajan Pro
47-
# fonts:
48-
# - asset: fonts/TrajanPro.ttf
49-
# - asset: fonts/TrajanPro_Bold.ttf
50-
# weight: 700
51-
#
52-
# For details regarding fonts in packages, see
53-
# https://flutter.dev/custom-fonts/#from-packages
19+
flutter:

0 commit comments

Comments
 (0)