Skip to content

Commit f8fb1c3

Browse files
committed
Update app icon and use it in sidebar
1 parent 7890d9a commit f8fb1c3

File tree

11 files changed

+9
-19
lines changed

11 files changed

+9
-19
lines changed

assets/icon.png

56.2 KB
Loading

lib/main.dart

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -238,21 +238,13 @@ class _MainNavigatorState extends State<MainNavigator> {
238238
padding: const EdgeInsets.fromLTRB(20, 24, 20, 20),
239239
child: Row(
240240
children: [
241-
Container(
242-
width: 36,
243-
height: 36,
244-
decoration: BoxDecoration(
245-
gradient: const LinearGradient(
246-
begin: Alignment.topLeft,
247-
end: Alignment.bottomRight,
248-
colors: [Color(0xFF007AFF), Color(0xFF5856D6)],
249-
),
250-
borderRadius: BorderRadius.circular(8),
251-
),
252-
child: const Icon(
253-
CupertinoIcons.cube_box,
254-
color: Colors.white,
255-
size: 20,
241+
ClipRRect(
242+
borderRadius: BorderRadius.circular(8),
243+
child: Image.asset(
244+
'assets/icon.png',
245+
width: 36,
246+
height: 36,
247+
fit: BoxFit.cover,
256248
),
257249
),
258250
const SizedBox(width: 10),
55.1 KB
Loading
3.01 KB
Loading
63 Bytes
Loading
6.85 KB
Loading
281 Bytes
Loading
20.2 KB
Loading
1.01 KB
Loading

pubspec.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@ flutter:
8282
# the material Icons class.
8383
uses-material-design: true
8484

85-
# To add assets to your application, add an assets section, like this:
86-
# assets:
87-
# - images/a_dot_burr.jpeg
88-
# - images/a_dot_ham.jpeg
85+
assets:
86+
- assets/
8987

9088
# An image asset can refer to one or more resolution-specific "variants", see
9189
# https://flutter.dev/to/resolution-aware-images

0 commit comments

Comments
 (0)