From 1e0f61bf41554fb18370ee5001991865d42e643e Mon Sep 17 00:00:00 2001 From: Uwe Date: Tue, 3 Dec 2024 08:20:29 +0100 Subject: [PATCH] Examples: replace blue with more ObjectBox-like teal color --- objectbox/example/flutter/objectbox_demo/lib/main.dart | 2 +- .../example/flutter/objectbox_demo_relations/lib/main.dart | 2 +- .../flutter/objectbox_demo_relations/lib/task_elements.dart | 2 +- objectbox/example/flutter/objectbox_demo_sync/lib/main.dart | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/objectbox/example/flutter/objectbox_demo/lib/main.dart b/objectbox/example/flutter/objectbox_demo/lib/main.dart index c69c9a66..5b340f22 100644 --- a/objectbox/example/flutter/objectbox_demo/lib/main.dart +++ b/objectbox/example/flutter/objectbox_demo/lib/main.dart @@ -26,7 +26,7 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) => MaterialApp( title: 'OB Example', - theme: ThemeData(primarySwatch: Colors.blue), + theme: ThemeData(primarySwatch: Colors.teal), home: const MyHomePage(title: 'OB Example'), ); } diff --git a/objectbox/example/flutter/objectbox_demo_relations/lib/main.dart b/objectbox/example/flutter/objectbox_demo_relations/lib/main.dart index 5aeb09dd..73385a4e 100644 --- a/objectbox/example/flutter/objectbox_demo_relations/lib/main.dart +++ b/objectbox/example/flutter/objectbox_demo_relations/lib/main.dart @@ -28,7 +28,7 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) => MaterialApp( title: 'Task-list app example', - theme: ThemeData(primarySwatch: Colors.blue), + theme: ThemeData(primarySwatch: Colors.teal), home: const MyHomePage(title: 'ObjectBox Example'), ); } diff --git a/objectbox/example/flutter/objectbox_demo_relations/lib/task_elements.dart b/objectbox/example/flutter/objectbox_demo_relations/lib/task_elements.dart index ba15c9eb..7e7832eb 100644 --- a/objectbox/example/flutter/objectbox_demo_relations/lib/task_elements.dart +++ b/objectbox/example/flutter/objectbox_demo_relations/lib/task_elements.dart @@ -79,7 +79,7 @@ class _TaskInputState extends State { items: tags.map(buildMenuItem).toList(), underline: Container( height: 2, - color: Colors.blueAccent, + color: Theme.of(context).colorScheme.primary, ), onChanged: (value) => { setState( diff --git a/objectbox/example/flutter/objectbox_demo_sync/lib/main.dart b/objectbox/example/flutter/objectbox_demo_sync/lib/main.dart index e40cc994..714bd93c 100644 --- a/objectbox/example/flutter/objectbox_demo_sync/lib/main.dart +++ b/objectbox/example/flutter/objectbox_demo_sync/lib/main.dart @@ -27,7 +27,7 @@ class MyApp extends StatelessWidget { Widget build(BuildContext context) => MaterialApp( title: 'OB Example (sync)', - theme: ThemeData(primarySwatch: Colors.blue), + theme: ThemeData(primarySwatch: Colors.teal), home: const MyHomePage(title: 'OB Example (sync)'), ); }