Skip to content

Commit

Permalink
Add assets
Browse files Browse the repository at this point in the history
add icon to toolbar
  • Loading branch information
DominikHirsch committed Sep 21, 2022
1 parent 98443fe commit 151e82d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
Binary file added assets/images/queensCrown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,21 @@ class QueensQuest extends StatelessWidget {
),
home: Scaffold(
appBar: AppBar(
title: const Text('Foo'),
title: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Image.asset(
'assets/images/queensCrown.png',
fit: BoxFit.contain,
height: 32,
),
Container(
padding: const EdgeInsets.all(8.0),
child: const Text('Queens Quest'),
),
],

),
),
body: const Center(
child: QueenList(),
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ flutter:
uses-material-design: true

# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
assets:
- assets/images/queensCrown.png
# - images/a_dot_ham.jpeg

# An image asset can refer to one or more resolution-specific "variants", see
Expand Down
Binary file added queensCrown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 151e82d

Please sign in to comment.