Skip to content

Commit e573299

Browse files
committed
add multiple steps indicator
1 parent 77e5b30 commit e573299

7 files changed

+134
-50
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [1.0.1] - 2020-06-27
2+
3+
You are now able to add multiple steps indicator
4+
15
## [1.0.0] - 2020-06-16
26

37
Custom line length between steps

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A simple steps indicator widget
66

77
## Installation
88

9-
Add `steps_indicator: ^1.0.0` in your `pubspec.yaml` dependencies. And import it:
9+
Add `steps_indicator: ^1.0.1` in your `pubspec.yaml` dependencies. And import it:
1010

1111
```dart
1212
import 'package:steps_indicator/steps_indicator.dart';

example/lib/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class _MyHomePageState extends State<MyHomePage> {
5050
lineLength: 20,
5151
lineLengthCustomStep: [
5252
StepsIndicatorCustomLine(nbStep: 4, lenght: 105)
53-
]
53+
],
5454
),
5555
Row(
5656
crossAxisAlignment: CrossAxisAlignment.center,

example/pubspec.lock

+59-17
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
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.13"
11+
args:
12+
dependency: transitive
13+
description:
14+
name: args
15+
url: "https://pub.dartlang.org"
16+
source: hosted
17+
version: "1.6.0"
418
async:
519
dependency: transitive
620
description:
@@ -22,34 +36,34 @@ packages:
2236
url: "https://pub.dartlang.org"
2337
source: hosted
2438
version: "1.1.3"
25-
clock:
39+
collection:
2640
dependency: transitive
2741
description:
28-
name: clock
42+
name: collection
2943
url: "https://pub.dartlang.org"
3044
source: hosted
31-
version: "1.0.1"
32-
collection:
45+
version: "1.14.12"
46+
convert:
3347
dependency: transitive
3448
description:
35-
name: collection
49+
name: convert
3650
url: "https://pub.dartlang.org"
3751
source: hosted
38-
version: "1.14.12"
52+
version: "2.1.1"
53+
crypto:
54+
dependency: transitive
55+
description:
56+
name: crypto
57+
url: "https://pub.dartlang.org"
58+
source: hosted
59+
version: "2.1.4"
3960
cupertino_icons:
4061
dependency: "direct main"
4162
description:
4263
name: cupertino_icons
4364
url: "https://pub.dartlang.org"
4465
source: hosted
4566
version: "0.1.3"
46-
fake_async:
47-
dependency: transitive
48-
description:
49-
name: fake_async
50-
url: "https://pub.dartlang.org"
51-
source: hosted
52-
version: "1.1.0"
5367
flutter:
5468
dependency: "direct main"
5569
description: flutter
@@ -60,6 +74,13 @@ packages:
6074
description: flutter
6175
source: sdk
6276
version: "0.0.0"
77+
image:
78+
dependency: transitive
79+
description:
80+
name: image
81+
url: "https://pub.dartlang.org"
82+
source: hosted
83+
version: "2.1.12"
6384
matcher:
6485
dependency: transitive
6586
description:
@@ -80,7 +101,21 @@ packages:
80101
name: path
81102
url: "https://pub.dartlang.org"
82103
source: hosted
83-
version: "1.7.0"
104+
version: "1.6.4"
105+
petitparser:
106+
dependency: transitive
107+
description:
108+
name: petitparser
109+
url: "https://pub.dartlang.org"
110+
source: hosted
111+
version: "2.4.0"
112+
quiver:
113+
dependency: transitive
114+
description:
115+
name: quiver
116+
url: "https://pub.dartlang.org"
117+
source: hosted
118+
version: "2.1.3"
84119
sky_engine:
85120
dependency: transitive
86121
description: flutter
@@ -106,7 +141,7 @@ packages:
106141
path: ".."
107142
relative: true
108143
source: path
109-
version: "0.3.1"
144+
version: "1.0.1"
110145
stream_channel:
111146
dependency: transitive
112147
description:
@@ -134,7 +169,7 @@ packages:
134169
name: test_api
135170
url: "https://pub.dartlang.org"
136171
source: hosted
137-
version: "0.2.16"
172+
version: "0.2.15"
138173
typed_data:
139174
dependency: transitive
140175
description:
@@ -149,5 +184,12 @@ packages:
149184
url: "https://pub.dartlang.org"
150185
source: hosted
151186
version: "2.0.8"
187+
xml:
188+
dependency: transitive
189+
description:
190+
name: xml
191+
url: "https://pub.dartlang.org"
192+
source: hosted
193+
version: "3.6.1"
152194
sdks:
153-
dart: ">=2.7.0 <3.0.0"
195+
dart: ">=2.6.0 <3.0.0"

lib/steps_indicator.dart

+14-18
Original file line numberDiff line numberDiff line change
@@ -118,24 +118,20 @@ class StepsIndicator extends StatelessWidget {
118118
}
119119

120120
Widget stepSelectedWidget() {
121-
return Hero(
122-
tag: 'selectedStep',
123-
child: selectedStepWidget != null
124-
? selectedStepWidget
125-
: ClipRRect(
126-
borderRadius: BorderRadius.circular(selectedStepSize),
127-
child: Container(
128-
decoration: BoxDecoration(
129-
color: selectedStepColorIn,
130-
borderRadius: BorderRadius.circular(selectedStepSize),
131-
border: Border.all(
132-
width: selectedStepBorderSize,
133-
color: selectedStepColorOut)),
134-
height: selectedStepSize,
135-
width: selectedStepSize,
136-
child: Container()),
137-
),
138-
);
121+
return selectedStepWidget != null
122+
? selectedStepWidget
123+
: ClipRRect(
124+
borderRadius: BorderRadius.circular(selectedStepSize),
125+
child: Container(
126+
decoration: BoxDecoration(
127+
color: selectedStepColorIn,
128+
borderRadius: BorderRadius.circular(selectedStepSize),
129+
border: Border.all(
130+
width: selectedStepBorderSize,
131+
color: selectedStepColorOut)),
132+
height: selectedStepSize,
133+
width: selectedStepSize,
134+
child: Container()));
139135
}
140136

141137
Widget stepDoneWidget() {

pubspec.lock

+54-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
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.13"
11+
args:
12+
dependency: transitive
13+
description:
14+
name: args
15+
url: "https://pub.dartlang.org"
16+
source: hosted
17+
version: "1.6.0"
418
async:
519
dependency: transitive
620
description:
@@ -22,27 +36,27 @@ packages:
2236
url: "https://pub.dartlang.org"
2337
source: hosted
2438
version: "1.1.3"
25-
clock:
39+
collection:
2640
dependency: transitive
2741
description:
28-
name: clock
42+
name: collection
2943
url: "https://pub.dartlang.org"
3044
source: hosted
31-
version: "1.0.1"
32-
collection:
45+
version: "1.14.12"
46+
convert:
3347
dependency: transitive
3448
description:
35-
name: collection
49+
name: convert
3650
url: "https://pub.dartlang.org"
3751
source: hosted
38-
version: "1.14.12"
39-
fake_async:
52+
version: "2.1.1"
53+
crypto:
4054
dependency: transitive
4155
description:
42-
name: fake_async
56+
name: crypto
4357
url: "https://pub.dartlang.org"
4458
source: hosted
45-
version: "1.1.0"
59+
version: "2.1.4"
4660
flutter:
4761
dependency: "direct main"
4862
description: flutter
@@ -53,6 +67,13 @@ packages:
5367
description: flutter
5468
source: sdk
5569
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.12"
5677
matcher:
5778
dependency: transitive
5879
description:
@@ -73,7 +94,21 @@ packages:
7394
name: path
7495
url: "https://pub.dartlang.org"
7596
source: hosted
76-
version: "1.7.0"
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.1.3"
77112
sky_engine:
78113
dependency: transitive
79114
description: flutter
@@ -120,7 +155,7 @@ packages:
120155
name: test_api
121156
url: "https://pub.dartlang.org"
122157
source: hosted
123-
version: "0.2.16"
158+
version: "0.2.15"
124159
typed_data:
125160
dependency: transitive
126161
description:
@@ -135,5 +170,12 @@ packages:
135170
url: "https://pub.dartlang.org"
136171
source: hosted
137172
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.6.1"
138180
sdks:
139-
dart: ">=2.7.0 <3.0.0"
181+
dart: ">=2.6.0 <3.0.0"

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: steps_indicator
22
description: Flutter plugin to display a simple steps indicator line widget.
3-
version: 1.0.0
3+
version: 1.0.1
44
homepage: https://github.com/huextrat/steps_indicator
55

66
environment:

0 commit comments

Comments
 (0)