Skip to content
Merged
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
12 changes: 10 additions & 2 deletions examples/travel_app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Dynamic UI Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
Expand Down Expand Up @@ -121,8 +122,15 @@ class _MyHomePageState extends State<MyHomePage> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: const Text('Dynamic UI Demo'),
leading: const Icon(Icons.menu),
title: const Row(
children: <Widget>[
Icon(Icons.chat_bubble_outline),
SizedBox(width: 8.0), // Add spacing between icon and text
Text('Dynamic UI Demo'),
],
),
actions: [const Icon(Icons.person_outline), const SizedBox(width: 8.0)],
),
body: Center(
child: ConstrainedBox(
Expand Down
Loading