1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Flutter3.27 (#2483)

Updating samples for the next stable release
This commit is contained in:
Eric Windmill
2024-12-11 14:34:29 -05:00
committed by GitHub
parent 1ccce7c9e1
commit f25adf4529
8 changed files with 29 additions and 24 deletions

View File

@@ -74,9 +74,9 @@ class _ColorBoxState extends State<ColorBox> {
// Will change from int 0-255 to double 0.0-1.0 in 3.26+
// The properties also change from red/green/blue to r/g/b
// hex += (c.[r g b] * 255.0).round().toRadixString(16).padLeft(2, '0');
hex += c.red.toRadixString(16).padLeft(2, '0');
hex += c.green.toRadixString(16).padLeft(2, '0');
hex += c.blue.toRadixString(16).padLeft(2, '0');
hex += c.r.round().toRadixString(16).padLeft(2, '0');
hex += c.g.round().toRadixString(16).padLeft(2, '0');
hex += c.b.round().toRadixString(16).padLeft(2, '0');
final data = ClipboardData(text: hex);
await Clipboard.setData(data);
messenger.hideCurrentSnackBar();

View File

@@ -9,7 +9,6 @@ version: 1.0.0+1
environment:
sdk: ^3.5.0
flutter: ^3.19.0
dependencies:
flutter: