Skip to content

Commit

Permalink
Update readme files and changelogs in the widget_toolkit packages
Browse files Browse the repository at this point in the history
  • Loading branch information
DDavidPrime committed Apr 3, 2024
1 parent f7cf197 commit 6609979
Show file tree
Hide file tree
Showing 10 changed files with 51 additions and 23 deletions.
6 changes: 6 additions & 0 deletions packages/widget_toolkit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [0.0.2]
- Upgrade major versions of dependencies: `theme_tailor`, `theme_tailor_annotation`
### Breaking changes:
- Added `light()` and `dark()` constructors for each theme that previously has static `light` and `dark` fields
- Removed static fields `light` and `dark` for each of the themes

## [0.0.2-dev.3]
- Fixes and improvements

Expand Down
6 changes: 3 additions & 3 deletions packages/widget_toolkit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ Step 2: Pass the Theme extensions you needed to the ThemeData of your app
MaterialApp(
theme: ThemeData.light().copyWith(
extensions: <ThemeExtension<dynamic>>[
ItemPickerTheme.light,
ItemPickerTheme.light(),
],
),
darkTheme: ThemeData.dark().copyWith(
extensions: <ThemeExtension<dynamic>>[
ItemPickerTheme.dark,
ItemPickerTheme.dark(),
],
),
// other parameters...
Expand All @@ -91,7 +91,7 @@ Change the theme properties in order to change the visual outcome
```
...
extensions: [
ItemPickerTheme.light.copyWith(
ItemPickerTheme.light().copyWith(
backgroundColor: Colors.orange,
iconColor: Colors.red,
icon: Icons.ac_unit_outlined,
Expand Down
5 changes: 4 additions & 1 deletion packages/widget_toolkit_biometrics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [0.0.2]
- Update dependencies to use `widget_toolkit` version `0.0.2`

## [0.0.2-dev.3]
- Fixes and improvements

Expand All @@ -19,7 +22,7 @@
- Fixes code formatting issues
- Fixes wrong repository URL in the pubspec.yaml
- Fixes issues with CD
- Updates dependency on widget-toolkit to 0.0.1-dev7
- Updates dependency on widget_toolkit to 0.0.1-dev7

## [0.0.1-dev1]
- Initial release of widget_toolkit_biometrics,
Expand Down
4 changes: 2 additions & 2 deletions packages/widget_toolkit_biometrics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ Step 3: Pass the `WidgetToolkitTheme` extensions to the `ThemeData` of your app:
MaterialApp(
theme: ThemeData.light().copyWith(
colorScheme: ColorScheme.fromSwatch(),
WidgetToolkitTheme.light,
WidgetToolkitTheme.light(),
],
),
darkTheme: ThemeData.dark().copyWith(
colorScheme: ColorScheme.fromSwatch(),
extensions: [
WidgetToolkitTheme.dark,
WidgetToolkitTheme.dark(),
],
),
);
Expand Down
6 changes: 6 additions & 0 deletions packages/widget_toolkit_otp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [0.0.2]
- Upgrade major versions of dependencies: `theme_tailor`, `theme_tailor_annotation`
### Breaking changes:
- Added `light()` and `dark()` constructors for each theme that previously has static `light` and `dark` fields
- Removed static fields `light` and `dark` for each of the themes

## [0.0.2-dev.4]
* Fixes and improvements

Expand Down
8 changes: 4 additions & 4 deletions packages/widget_toolkit_otp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ return MaterialApp(
theme: ThemeData.light().copyWith(
colorScheme: ColorScheme.fromSwatch(),
extensions: [
WidgetToolkitTheme.light,
SmsCodeTheme.light,
WidgetToolkitTheme.light(),
SmsCodeTheme.light(),
],
),
darkTheme: ThemeData.dark().copyWith(
colorScheme: ColorScheme.fromSwatch(),
extensions: [
WidgetToolkitTheme.dark,
SmsCodeTheme.dark,
WidgetToolkitTheme.dark(),
SmsCodeTheme.dark(),
],
),
...
Expand Down
6 changes: 6 additions & 0 deletions packages/widget_toolkit_pin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [0.0.2]
- Upgrade major versions of dependencies: `theme_tailor`, `theme_tailor_annotation`
### Breaking changes:
- Added `light()` and `dark()` constructors for each theme that previously has static `light` and `dark` fields
- Removed static fields `light` and `dark` for each of the themes

## [0.0.2-dev.7]
* Fixes and improvements

Expand Down
8 changes: 4 additions & 4 deletions packages/widget_toolkit_pin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ MaterialApp(
theme: ThemeData.light().copyWith(
colorScheme: ColorScheme.fromSwatch(),
extensions: [
PinCodeTheme.light,
WidgetToolkitTheme.light,
PinCodeTheme.light(),
WidgetToolkitTheme.light(),
],
),
darkTheme: ThemeData.dark().copyWith(
colorScheme: ColorScheme.fromSwatch(),
extensions: [
PinCodeTheme.dark,
WidgetToolkitTheme.dark,
PinCodeTheme.dark(),
WidgetToolkitTheme.dark(),
],
),
);
Expand Down
6 changes: 6 additions & 0 deletions packages/widget_toolkit_qr/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [0.0.2]
- Upgrade major versions of dependencies: `theme_tailor`, `theme_tailor_annotation`
### Breaking changes:
- Added `light()` and `dark()` constructors for each theme that previously has static `light` and `dark` fields
- Removed static fields `light` and `dark` for each of the themes

## [0.0.2-dev.4]
* Fixes and improvements

Expand Down
19 changes: 10 additions & 9 deletions packages/widget_toolkit_qr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,16 @@ sheet, that displays the error returned from the `onError` method of `QrScannerW

**Step 3:** Pass the `WidgetToolkitTheme` and `QrScannerTheme` extensions to the `ThemeData` of your app:
```dart
MaterialApp(
theme: ThemeData.light().copyWith(
colorScheme: ColorScheme.fromSwatch(),
WidgetToolkitTheme.light,
QrScannerTheme.light, ], ),
darkTheme: ThemeData.dark().copyWith(
colorScheme: ColorScheme.fromSwatch(),
extensions: [
WidgetToolkitTheme.dark, QrScannerTheme.dark, ], ),);
MaterialApp(
theme: ThemeData.light().copyWith(
colorScheme: ColorScheme.fromSwatch(),
extensions: [ WidgetToolkitTheme.light(), QrScannerTheme.light(), ],
),
darkTheme: ThemeData.dark().copyWith(
colorScheme: ColorScheme.fromSwatch(),
extensions: [ WidgetToolkitTheme.dark(), QrScannerTheme.dark(), ],
),
);
```
**Note:** The `WidgetToolkitTheme` comes from the **Widget Toolkit** package which already presence in the **Widget Toolkit QR** package.
It can be imported with the following line:
Expand Down

0 comments on commit 6609979

Please sign in to comment.