Skip to content

Commit 8dd2590

Browse files
committed
fix: fixing minor docs issues
1 parent 492a202 commit 8dd2590

File tree

9 files changed

+44
-15
lines changed

9 files changed

+44
-15
lines changed

.fvm/fvm_config.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"flutterSdkVersion": "stable",
3+
"flavors": {}
4+
}

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,9 @@ build/
7272
!**/ios/**/default.mode2v3
7373
!**/ios/**/default.pbxuser
7474
!**/ios/**/default.perspectivev3
75+
76+
#VS Code
77+
.vscode
78+
79+
# FVM
80+
.fvm/flutter_sdk

CHANGELOG.md

+21-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1-
## [0.0.1] - TODO: Add release date.
1+
# Changelog
22

3-
* TODO: Describe initial release.
3+
## 0.3.1
4+
5+
- ⚙️  Fixed: initialization errors in `example`.
6+
- ⚙️  Fixed: `chip_selection.dart` had usages of `dynamic?`.
7+
- 📖  Changed: Updated `README` and `CHANGELOG` for initial release.
8+
9+
## 0.3.0
10+
11+
-  Added: `ChipSelection`. A `material` widget that provides an easy way to create a single or multiple selection chips. For the moment, it's a null safe version of [@davigmacode's ChipsChoice](https://github.com/davigmacode/flutter_chips_choice).
12+
- 📖  Changed: Example was migrated to null safety.
13+
14+
## 0.2.0
15+
16+
- ❗️🛠  Added: Null safety.
17+
-  Added: `AutolinkText`. A `shared` widget that enables automatic link recognition inside a given `String`. For the moment, it's a null safe version of [@FogNature's AutolinkText](https://github.com/FogNature/flutter_autolink_text).
18+
19+
## 0.1.0
20+
21+
-  Added: `PasswordTextField`. A `material` widget that already implements a visibility toggle.
22+
-  Added: `HideKeyboardOnTouchOutside`. A `shared` widget that enables the expected behavior of hiding the keyboard when the user touches outside an input.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ A widget that allows you to show or hide the password already embedded.
2626

2727
#### ChipSelection
2828

29-
A widget that provides an easy way to create a single or multiple selection chips. For the moment, it's a null safe version of davigmacode's [ChipsChoice](https://github.com/davigmacode/flutter_chips_choice)
29+
A widget that provides an easy way to create a single or multiple selection chips. For the moment, it's a null safe version of davigmacode's [ChipsChoice](https://github.com/davigmacode/flutter_chips_choice).
3030

3131
### Cupertino
3232

example/lib/main.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class MyHomePage extends StatefulWidget {
3131

3232
class _MyHomePageState extends State<MyHomePage> {
3333
List<String> selectedChipsMultiple = [];
34-
late String selectedChip;
34+
String? selectedChip;
3535

3636
@override
3737
Widget build(BuildContext context) {
@@ -132,7 +132,7 @@ class _MyHomePageState extends State<MyHomePage> {
132132
"Single Selection",
133133
style: Theme.of(context).textTheme.subtitle1,
134134
),
135-
ChipSelection<String>.single(
135+
ChipSelection<String?>.single(
136136
wrapped: true,
137137
alignment: WrapAlignment.center,
138138
value: selectedChip,

example/pubspec.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages:
77
name: async
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.5.0"
10+
version: "2.6.1"
1111
boolean_selector:
1212
dependency: transitive
1313
description:
@@ -99,7 +99,7 @@ packages:
9999
name: source_span
100100
url: "https://pub.dartlang.org"
101101
source: hosted
102-
version: "1.8.0"
102+
version: "1.8.1"
103103
stack_trace:
104104
dependency: transitive
105105
description:
@@ -134,7 +134,7 @@ packages:
134134
name: test_api
135135
url: "https://pub.dartlang.org"
136136
source: hosted
137-
version: "0.2.19"
137+
version: "0.3.0"
138138
typed_data:
139139
dependency: transitive
140140
description:
@@ -155,7 +155,7 @@ packages:
155155
path: ".."
156156
relative: true
157157
source: path
158-
version: "0.3.0"
158+
version: "0.3.1"
159159
sdks:
160160
dart: ">=2.12.0 <3.0.0"
161161
flutter: ">=1.17.0"

lib/material/chip_selection.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ class ChipSelectionData<T> {
216216
final bool hidden;
217217

218218
/// This prop is useful for choice builder
219-
final dynamic? meta;
219+
final dynamic meta;
220220

221221
/// Individual choice unselected item style
222222
final ChipSelectionItemStyle? style;
@@ -296,7 +296,7 @@ class ChipSelectionData<T> {
296296
String? tooltip,
297297
bool? disabled,
298298
bool? hidden,
299-
dynamic? meta,
299+
dynamic meta,
300300
ChipSelectionItemStyle? style,
301301
ChipSelectionItemStyle? activeStyle,
302302
Function(bool selected)? select,

pubspec.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages:
77
name: async
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.5.0"
10+
version: "2.6.1"
1111
boolean_selector:
1212
dependency: transitive
1313
description:
@@ -92,7 +92,7 @@ packages:
9292
name: source_span
9393
url: "https://pub.dartlang.org"
9494
source: hosted
95-
version: "1.8.0"
95+
version: "1.8.1"
9696
stack_trace:
9797
dependency: transitive
9898
description:
@@ -127,7 +127,7 @@ packages:
127127
name: test_api
128128
url: "https://pub.dartlang.org"
129129
source: hosted
130-
version: "0.2.19"
130+
version: "0.3.0"
131131
typed_data:
132132
dependency: transitive
133133
description:

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: widgetkit
22
description: A kit of widgets that are (almost) always needed in the different apps.
3-
version: 0.3.0
3+
version: 0.3.1
44
author:
55
homepage:
66

0 commit comments

Comments
 (0)