Skip to content

Commit 444decb

Browse files
Examples: for relations demo add icons to buttons
1 parent 0f5cfdb commit 444decb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

objectbox/example/flutter/objectbox_demo_relations/lib/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class _MyHomePageState extends State<MyHomePage> {
6060
floatingActionButton: FloatingActionButton.extended(
6161
key: const Key('add'),
6262
label: const Text('Add Task'),
63+
icon: const Icon(Icons.add),
6364
heroTag: null,
6465
onPressed: () {
6566
Navigator.of(context).push(

objectbox/example/flutter/objectbox_demo_relations/lib/tag_elements.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class _NewTagState extends State<NewTag> {
2727
Widget build(BuildContext context) {
2828
return FloatingActionButton.extended(
2929
label: const Text('New Tag'),
30+
icon: const Icon(Icons.add),
3031
heroTag: null,
3132
onPressed: () async {
3233
final dialog = await showDialog(

0 commit comments

Comments
 (0)