From e75633805a8c4fd3ebab34262b44f89a0ab53ac3 Mon Sep 17 00:00:00 2001 From: Reuben Turner Date: Wed, 4 May 2022 13:45:48 -0400 Subject: [PATCH] `MacosColorWell` docfix (#219) (#220) * docs: fix color well docs * chore: bump version & changelog --- CHANGELOG.md | 3 +++ example/pubspec.lock | 2 +- lib/src/selectors/color_well.dart | 3 +++ pubspec.yaml | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b29cf69a..c2fb044c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [1.0.0+1] +* Minor documentation fix for [MacosColorWell] + ## [1.0.0] * First stable release 🎉 diff --git a/example/pubspec.lock b/example/pubspec.lock index 5075b265..801bb2cc 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -87,7 +87,7 @@ packages: path: ".." relative: true source: path - version: "1.0.0" + version: "1.0.0+1" matcher: dependency: transitive description: diff --git a/lib/src/selectors/color_well.dart b/lib/src/selectors/color_well.dart index 8e2dd8ae..ff11ed76 100644 --- a/lib/src/selectors/color_well.dart +++ b/lib/src/selectors/color_well.dart @@ -46,6 +46,7 @@ enum ColorPickerMode { /// {@endtemplate} typedef OnColorSelected = void Function(Color color); +/// {@template macosColorWell} /// A control that displays a color value and lets the user change that color /// value. /// @@ -53,7 +54,9 @@ typedef OnColorSelected = void Function(Color color); /// which is an `NSColorPanel` from the Swift Cocoa library. /// /// Use a [MacosColorWell] when you want the user to be able to select a color. +/// {@endtemplate} class MacosColorWell extends StatefulWidget { + /// {@macro macosColorWell} const MacosColorWell({ Key? key, required this.onColorSelected, diff --git a/pubspec.yaml b/pubspec.yaml index 298b64a1..10e56aa8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: macos_ui description: Flutter widgets and themes implementing the current macOS design language. -version: 1.0.0 +version: 1.0.0+1 homepage: "https://github.com/GroovinChip/macos_ui" environment: