Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 2 additions & 21 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ class MyApp extends StatefulWidget {
}

class _MyAppState extends State<MyApp> {
Color _currentColor = Colors.blue;
Color _currentColor = Colors.grey.shade500;
final _controller = CircleColorPickerController(
initialColor: Colors.blue,
);
initialColor: Colors.grey.shade500, grayscale: false);

@override
Widget build(BuildContext context) {
Expand All @@ -34,24 +33,6 @@ class _MyAppState extends State<MyApp> {
},
),
),
const SizedBox(height: 48),
Row(
mainAxisSize: MainAxisSize.min,
children: [
TextButton(
onPressed: () => _controller.color = Colors.blue,
child: Text('BLUE', style: TextStyle(color: Colors.blue)),
),
TextButton(
onPressed: () => _controller.color = Colors.green,
child: Text('GREEN', style: TextStyle(color: Colors.green)),
),
TextButton(
onPressed: () => _controller.color = Colors.red,
child: Text('RED', style: TextStyle(color: Colors.red)),
),
],
),
],
),
),
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.3.0"
version: "0.3.1"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down
Loading