Skip to content

Commit b3b2e46

Browse files
committed
toggle animation completed
1 parent 70b1521 commit b3b2e46

4 files changed

Lines changed: 566 additions & 33 deletions

File tree

example/pubspec.lock

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -134,28 +134,14 @@ packages:
134134
name: petitparser
135135
url: "https://pub.dartlang.org"
136136
source: hosted
137-
version: "3.0.4"
138-
platform_detect:
139-
dependency: transitive
140-
description:
141-
name: platform_detect
142-
url: "https://pub.dartlang.org"
143-
source: hosted
144-
version: "1.4.0"
137+
version: "3.1.0"
145138
plugin_platform_interface:
146139
dependency: transitive
147140
description:
148141
name: plugin_platform_interface
149142
url: "https://pub.dartlang.org"
150143
source: hosted
151-
version: "1.0.1"
152-
pub_semver:
153-
dependency: transitive
154-
description:
155-
name: pub_semver
156-
url: "https://pub.dartlang.org"
157-
source: hosted
158-
version: "1.4.4"
144+
version: "1.0.3"
159145
sky_engine:
160146
dependency: transitive
161147
description: flutter
@@ -216,35 +202,42 @@ packages:
216202
name: url_launcher
217203
url: "https://pub.dartlang.org"
218204
source: hosted
219-
version: "5.5.3"
205+
version: "5.7.10"
220206
url_launcher_linux:
221207
dependency: transitive
222208
description:
223209
name: url_launcher_linux
224210
url: "https://pub.dartlang.org"
225211
source: hosted
226-
version: "0.0.1+1"
212+
version: "0.0.1+4"
227213
url_launcher_macos:
228214
dependency: transitive
229215
description:
230216
name: url_launcher_macos
231217
url: "https://pub.dartlang.org"
232218
source: hosted
233-
version: "0.0.1+7"
219+
version: "0.0.1+9"
234220
url_launcher_platform_interface:
235221
dependency: transitive
236222
description:
237223
name: url_launcher_platform_interface
238224
url: "https://pub.dartlang.org"
239225
source: hosted
240-
version: "1.0.8"
226+
version: "1.0.9"
241227
url_launcher_web:
242228
dependency: transitive
243229
description:
244230
name: url_launcher_web
245231
url: "https://pub.dartlang.org"
246232
source: hosted
247-
version: "0.1.3+2"
233+
version: "0.1.5+3"
234+
url_launcher_windows:
235+
dependency: transitive
236+
description:
237+
name: url_launcher_windows
238+
url: "https://pub.dartlang.org"
239+
source: hosted
240+
version: "0.0.1+3"
248241
vector_math:
249242
dependency: transitive
250243
description:
@@ -258,7 +251,7 @@ packages:
258251
name: xml
259252
url: "https://pub.dartlang.org"
260253
source: hosted
261-
version: "4.2.0"
254+
version: "4.5.1"
262255
sdks:
263256
dart: ">=2.10.0-110 <2.11.0"
264-
flutter: ">=1.18.0-6.0.pre <2.0.0"
257+
flutter: ">=1.22.0 <2.0.0"

lib/components/toggle/gf_toggle.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class GFToggle extends StatefulWidget {
1616
const GFToggle(
1717
{Key key,
1818
@required this.onChanged,
19-
this.value,
19+
@required this.value,
2020
this.enabledText,
2121
this.disabledText,
2222
this.enabledTextStyle,
@@ -29,7 +29,8 @@ class GFToggle extends StatefulWidget {
2929
this.boxShape,
3030
this.borderRadius,
3131
this.duration = const Duration(milliseconds: 400)})
32-
: super(key: key);
32+
: assert(value != null),
33+
super(key: key);
3334

3435
///type [String] used to add custom text i.e, ON,ENABLE
3536
final String enabledText;

pubspec.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ packages:
164164
name: io
165165
url: "https://pub.dartlang.org"
166166
source: hosted
167-
version: "0.3.4"
167+
version: "0.3.5"
168168
js:
169169
dependency: transitive
170170
description:
@@ -227,7 +227,7 @@ packages:
227227
name: node_preamble
228228
url: "https://pub.dartlang.org"
229229
source: hosted
230-
version: "1.4.12"
230+
version: "1.4.13"
231231
package_config:
232232
dependency: transitive
233233
description:
@@ -276,21 +276,21 @@ packages:
276276
name: shelf_packages_handler
277277
url: "https://pub.dartlang.org"
278278
source: hosted
279-
version: "2.0.0"
279+
version: "2.0.1"
280280
shelf_static:
281281
dependency: transitive
282282
description:
283283
name: shelf_static
284284
url: "https://pub.dartlang.org"
285285
source: hosted
286-
version: "0.2.8"
286+
version: "0.2.9+2"
287287
shelf_web_socket:
288288
dependency: transitive
289289
description:
290290
name: shelf_web_socket
291291
url: "https://pub.dartlang.org"
292292
source: hosted
293-
version: "0.2.3"
293+
version: "0.2.4+1"
294294
sky_engine:
295295
dependency: transitive
296296
description: flutter
@@ -400,14 +400,14 @@ packages:
400400
name: web_socket_channel
401401
url: "https://pub.dartlang.org"
402402
source: hosted
403-
version: "1.1.0"
403+
version: "1.2.0"
404404
webkit_inspection_protocol:
405405
dependency: transitive
406406
description:
407407
name: webkit_inspection_protocol
408408
url: "https://pub.dartlang.org"
409409
source: hosted
410-
version: "0.7.4"
410+
version: "0.7.5"
411411
yaml:
412412
dependency: transitive
413413
description:
@@ -416,4 +416,4 @@ packages:
416416
source: hosted
417417
version: "2.2.1"
418418
sdks:
419-
dart: ">=2.10.0-110 <2.11.0"
419+
dart: ">=2.10.0 <2.11.0"

0 commit comments

Comments
 (0)