Skip to content

Commit a8aa512

Browse files
separate images assets from svg icons assets
1 parent 9f4d30a commit a8aa512

File tree

17 files changed

+380
-5251
lines changed

17 files changed

+380
-5251
lines changed

assets/icons/bg-pattern.svg

+5-4,973
Loading

assets/images/bg-pattern.png

195 KB
Loading
File renamed without changes.
File renamed without changes.

assets/images/pattern.png

288 KB
Loading
File renamed without changes.
File renamed without changes.

lib/app/view/widgets/app_view.dart

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class AppView extends StatelessWidget {
4040
builder: (context, themeMode) {
4141
return MaterialApp(
4242
debugShowCheckedModeBanner: false,
43+
// showPerformanceOverlay: true,
4344
theme: AppTheme.lightTheme,
4445
darkTheme: AppTheme.darkTheme,
4546
themeMode: themeMode,

lib/common/widgets/base_page.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ class BasePage extends StatelessWidget {
4545
left: 0,
4646
right: 0,
4747
bottom: 0,
48-
child: Assets.icons.bgPattern
49-
.svg(color: Theme.of(context).colorScheme.onSurface.withOpacity(.03), fit: BoxFit.fitHeight),
48+
child: Assets.images.bgPattern
49+
.image(color: Theme.of(context).colorScheme.onSurface.withOpacity(.03), fit: BoxFit.fitHeight),
5050
),
5151
],
5252
if (accentBackground ?? true) ...[
5353
Positioned(
5454
top: -MediaQuery.of(context).size.width / 4,
5555
right: -MediaQuery.of(context).size.width / 4,
56-
child: Assets.icons.pattern.svg(
56+
child: Assets.images.pattern.image(
5757
color: Theme.of(context).colorScheme.onSurface.withOpacity(.2),
5858
width: MediaQuery.of(context).size.width / 1.3,
5959
),

lib/gen/assets.gen.dart

+83-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/modules/home/presentation/widgets/header_card.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class _HeaderCardState extends State<HeaderCard> {
5454
return Container(
5555
width: MediaQuery.of(context).size.width / 1.15,
5656
decoration: BoxDecoration(
57-
image: DecorationImage(image: Assets.icons.mosque.provider(), fit: BoxFit.cover),
57+
image: DecorationImage(image: Assets.images.mosque.provider(), fit: BoxFit.cover),
5858
borderRadius: BorderRadius.circular(20),
5959
boxShadow: [
6060
BoxShadow(

lib/modules/home/presentation/widgets/menu_list.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class MenuList extends StatelessWidget {
3737
),
3838
item: MenuItem(
3939
title: l10n.qiblaDirection,
40-
icon: Assets.icons.compassPng.image(width: 50, height: 50),
40+
icon: Assets.images.compass.image(width: 50, height: 50),
4141
),
4242
),
4343
GridItem(
@@ -59,7 +59,7 @@ class MenuList extends StatelessWidget {
5959
),
6060
item: MenuItem(
6161
title: l10n.shalatTime,
62-
icon: Assets.icons.shalatPng.image(width: 50, height: 50),
62+
icon: Assets.images.shalat.image(width: 50, height: 50),
6363
),
6464
),
6565
GridItem(
@@ -80,7 +80,7 @@ class MenuList extends StatelessWidget {
8080
onTap: () => Navigator.pushNamed(context, '/settings'),
8181
item: MenuItem(
8282
title: l10n.settings,
83-
icon: Assets.icons.setting.image(width: 50, height: 50),
83+
icon: Assets.images.setting.image(width: 50, height: 50),
8484
),
8585
),
8686
],

lib/modules/qibla/presentation/widgets/qiblah_compass.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class QiblahCompassWidget extends StatelessWidget {
8383
children: <Widget>[
8484
Transform.rotate(
8585
angle: qiblahDirection.direction * (pi / 180) * -1,
86-
child: Assets.icons.compassSvg.svg(),
86+
child: Assets.icons.compass.svg(),
8787
),
8888
Transform.rotate(
8989
angle: qiblahDirection.qiblah * (pi / 180) * -1,

lib/modules/settings/presentation/settings_page.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class SettingsPage extends StatelessWidget {
151151
value: context.watch<AppThemeCubit>().state == ThemeMode.dark,
152152
activeTrackColor: colorScheme.secondary,
153153
activeColor: colorScheme.primary,
154-
activeThumbImage: Assets.icons.mosque.provider(),
154+
activeThumbImage: Assets.images.mosque.provider(),
155155
onChanged: (value) {
156156
context.read<AppThemeCubit>().toggleTheme();
157157
},

lib/modules/surah/utils/dialog_preferences.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void showPreferencesDialog(
4343
value: context.watch<AppThemeCubit>().state == ThemeMode.dark,
4444
activeTrackColor: colorScheme.secondary,
4545
activeColor: colorScheme.primary,
46-
activeThumbImage: Assets.icons.mosque.provider(),
46+
activeThumbImage: Assets.images.mosque.provider(),
4747
onChanged: (value) {
4848
context.read<AppThemeCubit>().toggleTheme();
4949
},

0 commit comments

Comments
 (0)