some progress in custom app icon thingie
This commit is contained in:
parent
7840a07c95
commit
1ac618c29f
BIN
filcnaplo/assets/launch_icons/refilc_default.png
Normal file
BIN
filcnaplo/assets/launch_icons/refilc_default.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
@ -87,6 +87,7 @@ flutter:
|
|||||||
- assets/animations/
|
- assets/animations/
|
||||||
- assets/images/
|
- assets/images/
|
||||||
- assets/images/subject_covers/
|
- assets/images/subject_covers/
|
||||||
|
- assets/launch_icons/
|
||||||
|
|
||||||
fonts:
|
fonts:
|
||||||
- family: FilcIcons
|
- family: FilcIcons
|
||||||
|
@ -61,14 +61,21 @@ class FilterBar extends StatelessWidget implements PreferredSizeWidget {
|
|||||||
// avoid fading over selected tab
|
// avoid fading over selected tab
|
||||||
return ShaderMask(
|
return ShaderMask(
|
||||||
shaderCallback: (Rect bounds) {
|
shaderCallback: (Rect bounds) {
|
||||||
final Color bg = Theme.of(context).scaffoldBackgroundColor;
|
final Color bg =
|
||||||
|
Theme.of(context).scaffoldBackgroundColor;
|
||||||
final double index = controller.animation!.value;
|
final double index = controller.animation!.value;
|
||||||
return LinearGradient(begin: Alignment.topLeft, end: Alignment.bottomRight, colors: [
|
return LinearGradient(
|
||||||
|
begin: Alignment.topLeft,
|
||||||
|
end: Alignment.bottomRight,
|
||||||
|
colors: [
|
||||||
index < 0.2 ? Colors.transparent : bg,
|
index < 0.2 ? Colors.transparent : bg,
|
||||||
Colors.transparent,
|
Colors.transparent,
|
||||||
Colors.transparent,
|
Colors.transparent,
|
||||||
index > controller.length - 1.2 ? Colors.transparent : bg
|
index > controller.length - 1.2
|
||||||
], stops: const [
|
? Colors.transparent
|
||||||
|
: bg
|
||||||
|
],
|
||||||
|
stops: const [
|
||||||
0,
|
0,
|
||||||
0.1,
|
0.1,
|
||||||
0.9,
|
0.9,
|
||||||
|
@ -20,7 +20,6 @@ import 'package:filcnaplo_mobile_ui/common/bottom_sheet_menu/bottom_sheet_menu_i
|
|||||||
import 'package:filcnaplo_mobile_ui/common/panel/panel.dart';
|
import 'package:filcnaplo_mobile_ui/common/panel/panel.dart';
|
||||||
import 'package:filcnaplo_mobile_ui/common/panel/panel_button.dart';
|
import 'package:filcnaplo_mobile_ui/common/panel/panel_button.dart';
|
||||||
import 'package:filcnaplo_mobile_ui/common/profile_image/profile_image.dart';
|
import 'package:filcnaplo_mobile_ui/common/profile_image/profile_image.dart';
|
||||||
import 'package:filcnaplo_mobile_ui/common/soon_alert/soon_alert.dart';
|
|
||||||
import 'package:filcnaplo_mobile_ui/common/system_chrome.dart';
|
import 'package:filcnaplo_mobile_ui/common/system_chrome.dart';
|
||||||
import 'package:filcnaplo_mobile_ui/common/widgets/update/updates_view.dart';
|
import 'package:filcnaplo_mobile_ui/common/widgets/update/updates_view.dart';
|
||||||
import 'package:filcnaplo_mobile_ui/screens/news/news_screen.dart';
|
import 'package:filcnaplo_mobile_ui/screens/news/news_screen.dart';
|
||||||
@ -31,6 +30,7 @@ import 'package:filcnaplo_mobile_ui/screens/settings/modify_subject_names.dart';
|
|||||||
import 'package:filcnaplo_mobile_ui/screens/settings/notifications_screen.dart';
|
import 'package:filcnaplo_mobile_ui/screens/settings/notifications_screen.dart';
|
||||||
import 'package:filcnaplo_mobile_ui/screens/settings/privacy_view.dart';
|
import 'package:filcnaplo_mobile_ui/screens/settings/privacy_view.dart';
|
||||||
import 'package:filcnaplo_mobile_ui/screens/settings/settings_helper.dart';
|
import 'package:filcnaplo_mobile_ui/screens/settings/settings_helper.dart';
|
||||||
|
import 'package:filcnaplo_premium/ui/mobile/settings/app_icon_screen.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@ -843,17 +843,20 @@ class _SettingsScreenState extends State<SettingsScreen>
|
|||||||
MenuRenamedTeachers(
|
MenuRenamedTeachers(
|
||||||
settings: settings,
|
settings: settings,
|
||||||
),
|
),
|
||||||
PanelButton(
|
PremiumCustomAppIconMenu(
|
||||||
onPressed: () {
|
settings: settings,
|
||||||
SoonAlert.show(context: context);
|
|
||||||
},
|
|
||||||
title: Text('app_icon'.i18n),
|
|
||||||
leading: const Icon(FeatherIcons.edit),
|
|
||||||
// trailing: Text(
|
|
||||||
// 'default'.i18n,
|
|
||||||
// style: const TextStyle(fontSize: 14.0),
|
|
||||||
// ),
|
|
||||||
),
|
),
|
||||||
|
// PanelButton(
|
||||||
|
// onPressed: () {
|
||||||
|
// SoonAlert.show(context: context);
|
||||||
|
// },
|
||||||
|
// title: Text('app_icon'.i18n),
|
||||||
|
// leading: const Icon(FeatherIcons.edit),
|
||||||
|
// // trailing: Text(
|
||||||
|
// // 'default'.i18n,
|
||||||
|
// // style: const TextStyle(fontSize: 14.0),
|
||||||
|
// // ),
|
||||||
|
// ),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit b7d15b7e5ff31da4455f11108920ec054b67f26e
|
Subproject commit 6abcf9a4f39985ae7447677d50e81c68a622fa7c
|
Loading…
x
Reference in New Issue
Block a user