Skip to content

Commit

Permalink
Extended an example.
Browse files Browse the repository at this point in the history
  • Loading branch information
signmotion committed Mar 31, 2024
1 parent 5791ae1 commit b5ded43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import 'package:uni_color_palette/uni_color_palette.dart';
/// that visualize a palette.
void main() {
final palette = UniPalette(zeplinColors);

print('I know ${palette.count} colors.');
print(palette['forrest green']);

final all = palette.list.map((c) => c.name).toList()..sort();
print('All colors from the palette:\n${all.join(', ')}');
}

0 comments on commit b5ded43

Please sign in to comment.