Skip to content

Commit

Permalink
feat: 图标替换,renormalize,调整cache
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Jan 5, 2025
1 parent 616d1c5 commit f3df508
Show file tree
Hide file tree
Showing 28 changed files with 170 additions and 202 deletions.
75 changes: 18 additions & 57 deletions android/app/src/debug/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -1,64 +1,25 @@
<!-- Never trust ChatGPT's math abilities! ——VillagerTom -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="131.64"
android:viewportHeight="117.89">
<group android:scaleX="0.95"
android:scaleY="0.95"
android:translateX="3.291"
android:translateY="2.94725">
<group android:scaleX="1.2"
android:scaleY="1.2"
android:translateX="-13.164"
android:translateY="-11.789">
<group android:scaleX="1.2"
android:scaleY="1.2"
android:translateX="-13.164"
android:translateY="-11.789">
<group android:scaleX="1.1"
android:scaleY="1.1"
android:translateX="-6.582"
android:translateY="-5.8945">
<group android:scaleX="0.9"
android:scaleY="0.9"
android:translateX="6.582"
android:translateY="5.8945">
<group android:scaleX="0.85"
android:scaleY="0.92"
android:translateX="10.282"
android:translateY="4.8945">
<group android:scaleX="0.36"
android:scaleY="0.3239744"
android:translateX="42.1248"
android:translateY="39.941284">
<path
android:pathData="M35.32,117.89 L56.11,0H20.79L0,117.89Z"
android:strokeAlpha="0.8"
android:fillColor="#ffc001"
android:fillAlpha="0.8"/>
<path
android:pathData="M47.57,88.34H95.28L124.92,63.28 131.63,25.22 127.7,20.4Z"
android:strokeAlpha="0.8"
android:fillColor="#26ddfd"
android:fillAlpha="0.8"/>
<path
android:pathData="M124.92,63.28 L131.63,25.22 111.02,0H63.37l55.87,68.08z"
android:strokeAlpha="0.8"
android:fillColor="#85a9ff"
android:fillAlpha="0.8"/>
<path
android:pathData="M131.63,25.22 L111.02,0H20.79l-5.25,29.75h115.3z"
android:strokeAlpha="0.8"
android:fillColor="#b2ef28"
android:fillAlpha="0.8"/>
</group>
</group>
</group>
</group>
</group>
</group>
android:viewportWidth="108"
android:viewportHeight="108"
android:alpha="0.9">
<group
android:scaleX="0.340"
android:scaleY="0.370"
android:translateX="32.075"
android:translateY="32.530">
<path android:fillAlpha="0.8" android:fillColor="#FFC001"
android:pathData="M35.32,117.89L56.11,0H20.79L0,117.89h35.32z" android:strokeAlpha="0.8"/>
<path android:fillAlpha="0.8" android:fillColor="#26DDFD"
android:pathData="M47.57,88.34h47.71l29.64,-25.06 6.71,-38.06 -3.93,-4.82 -80.13,67.94z" android:strokeAlpha="0.8"/>
<path android:fillAlpha="0.8" android:fillColor="#85A9FF"
android:pathData="M124.92,63.28l6.71,-38.06L111.02,0H63.37l55.87,68.08 5.68,-4.8z" android:strokeAlpha="0.8"/>
<path android:fillAlpha="0.8" android:fillColor="#B2EF28"
android:pathData="M131.63,25.22L111.02,0H20.79l-5.25,29.75h115.3l0.79,-4.53z" android:strokeAlpha="0.8"/>
</group>
<group android:scaleX="0.5" android:scaleY="0.44" android:translateX="26" android:translateY="26">
<group android:scaleX="0.4" android:scaleY="0.4" android:translateX="22" android:translateY="22">
<path
android:pathData="M-4.76,257.17l266.8,-269.85l15.1,15.27l-266.8,269.85z"
android:strokeWidth="1.21889"
Expand Down
60 changes: 16 additions & 44 deletions android/app/src/main/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -1,50 +1,22 @@
<!-- Never trust ChatGPT's math abilities! ——VillagerTom -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="131.64"
android:viewportHeight="117.89"
android:viewportWidth="108"
android:viewportHeight="108"
android:alpha="0.9">
<group android:scaleX="0.95"
android:scaleY="0.95"
android:translateX="3.291"
android:translateY="2.94725">
<group android:scaleX="1.2"
android:scaleY="1.2"
android:translateX="-13.164"
android:translateY="-11.789">
<group android:scaleX="1.2"
android:scaleY="1.2"
android:translateX="-13.164"
android:translateY="-11.789">
<group android:scaleX="1.1"
android:scaleY="1.1"
android:translateX="-6.582"
android:translateY="-5.8945">
<group android:scaleX="0.9"
android:scaleY="0.9"
android:translateX="6.582"
android:translateY="5.8945">
<group android:scaleX="0.85"
android:scaleY="0.92"
android:translateX="10.282"
android:translateY="4.8945">
<group android:scaleX="0.36"
android:scaleY="0.3239744"
android:translateX="42.1248"
android:translateY="39.941284">
<path android:fillAlpha="0.8" android:fillColor="#FFC001"
android:pathData="M35.32,117.89L56.11,0H20.79L0,117.89h35.32z" android:strokeAlpha="0.8"/>
<path android:fillAlpha="0.8" android:fillColor="#26DDFD"
android:pathData="M47.57,88.34h47.71l29.64,-25.06 6.71,-38.06 -3.93,-4.82 -80.13,67.94z" android:strokeAlpha="0.8"/>
<path android:fillAlpha="0.8" android:fillColor="#85A9FF"
android:pathData="M124.92,63.28l6.71,-38.06L111.02,0H63.37l55.87,68.08 5.68,-4.8z" android:strokeAlpha="0.8"/>
<path android:fillAlpha="0.8" android:fillColor="#B2EF28"
android:pathData="M131.63,25.22L111.02,0H20.79l-5.25,29.75h115.3l0.79,-4.53z" android:strokeAlpha="0.8"/>
</group>
</group>
</group>
</group>
</group>
</group>
<group
android:scaleX="0.340"
android:scaleY="0.370"
android:translateX="32.075"
android:translateY="32.530">
<path android:fillAlpha="0.8" android:fillColor="#FFC001"
android:pathData="M35.32,117.89L56.11,0H20.79L0,117.89h35.32z" android:strokeAlpha="0.8"/>
<path android:fillAlpha="0.8" android:fillColor="#26DDFD"
android:pathData="M47.57,88.34h47.71l29.64,-25.06 6.71,-38.06 -3.93,-4.82 -80.13,67.94z" android:strokeAlpha="0.8"/>
<path android:fillAlpha="0.8" android:fillColor="#85A9FF"
android:pathData="M124.92,63.28l6.71,-38.06L111.02,0H63.37l55.87,68.08 5.68,-4.8z" android:strokeAlpha="0.8"/>
<path android:fillAlpha="0.8" android:fillColor="#B2EF28"
android:pathData="M131.63,25.22L111.02,0H20.79l-5.25,29.75h115.3l0.79,-4.53z" android:strokeAlpha="0.8"/>
</group>
</vector>
1 change: 1 addition & 0 deletions lib/pages/bangumi/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class _BangumiPageState extends State<BangumiPage>
return _bangumiController.queryBangumiFollow();
},
child: CustomScrollView(
cacheExtent: 3500,
controller: _bangumiController.scrollController,
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
Expand Down
3 changes: 3 additions & 0 deletions lib/pages/dynamics/detail/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
double padding = max(context.width / 2 - Grid.maxRowWidth, 0);
if (orientation == Orientation.portrait) {
return CustomScrollView(
cacheExtent: 3500,
controller: scrollController,
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
Expand All @@ -244,6 +245,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
children: [
Expanded(
child: CustomScrollView(
cacheExtent: 3500,
controller: ScrollController(),
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
Expand All @@ -259,6 +261,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
),
Expanded(
child: CustomScrollView(
cacheExtent: 3500,
controller: scrollController,
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
Expand Down
1 change: 1 addition & 0 deletions lib/pages/dynamics/tab/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class _DynamicsTabPageState extends State<DynamicsTabPage>
]);
},
child: CustomScrollView(
cacheExtent: 3500,
physics: const AlwaysScrollableScrollPhysics(),
controller: _dynamicsTabController.scrollController,
slivers: [
Expand Down
1 change: 1 addition & 0 deletions lib/pages/dynamics/widgets/up_panel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class _UpPanelState extends State<UpPanel> {
liveList = widget.upData!.liveUsers?.items ?? [];
// return const SizedBox();
return CustomScrollView(
cacheExtent: 3500,
physics: const AlwaysScrollableScrollPhysics(),
controller: widget.scrollController,
slivers: [
Expand Down
1 change: 1 addition & 0 deletions lib/pages/fan/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class _FansPageState extends State<FansPage> {
edgeOffset: 10.0,
onRefresh: () async => await _fansController.queryFans('init'),
child: CustomScrollView(
cacheExtent: 3500,
physics: const AlwaysScrollableScrollPhysics(),
controller: scrollController,
slivers: [
Expand Down
1 change: 1 addition & 0 deletions lib/pages/fav/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class _FavPageState extends State<FavPage> {
Map data = snapshot.data as Map;
if (data['status']) {
return Obx(() => CustomScrollView(
cacheExtent: 3500,
controller: scrollController,
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
Expand Down
1 change: 1 addition & 0 deletions lib/pages/fav_detail/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class _FavDetailPageState extends State<FavDetailPage> {
Widget build(BuildContext context) {
return Scaffold(
body: CustomScrollView(
cacheExtent: 3500,
physics: const AlwaysScrollableScrollPhysics(),
controller: _controller,
slivers: [
Expand Down
1 change: 1 addition & 0 deletions lib/pages/history/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ class _HistoryPageState extends State<HistoryPage> {
return;
},
child: CustomScrollView(
cacheExtent: 3500,
physics: const AlwaysScrollableScrollPhysics(),
controller: _historyController.scrollController,
slivers: [
Expand Down
1 change: 1 addition & 0 deletions lib/pages/history_search/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class _HistorySearchPageState extends State<HistorySearchPage> {
() => _historySearchCtr.loadingStatus.value == 'init'
? const SizedBox()
: CustomScrollView(
cacheExtent: 3500,
physics: const AlwaysScrollableScrollPhysics(),
controller: scrollController,
slivers: [
Expand Down
1 change: 1 addition & 0 deletions lib/pages/hot/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class _HotPageState extends State<HotPage> with AutomaticKeepAliveClientMixin {
return await _hotController.onRefresh();
},
child: CustomScrollView(
cacheExtent: 3500,
physics: const AlwaysScrollableScrollPhysics(),
controller: _hotController.scrollController,
slivers: [
Expand Down
1 change: 1 addition & 0 deletions lib/pages/later/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class _LaterPageState extends State<LaterPage> {
],
),
body: CustomScrollView(
cacheExtent: 3500,
physics: const AlwaysScrollableScrollPhysics(),
controller: _laterController.scrollController,
slivers: [
Expand Down
1 change: 1 addition & 0 deletions lib/pages/live/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class _LivePageState extends State<LivePage>
return await _liveController.onRefresh();
},
child: CustomScrollView(
cacheExtent: 3500,
physics: const AlwaysScrollableScrollPhysics(),
controller: _liveController.scrollController,
slivers: [
Expand Down
1 change: 1 addition & 0 deletions lib/pages/member_archive/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class _MemberArchivePageState extends State<MemberArchivePage> {
edgeOffset: 10.0,
onRefresh: _memberArchivesController.onRefresh, // 下拉刷新时触发的异步操作
child: CustomScrollView(
cacheExtent: 3500,
physics: const ClampingScrollPhysics(),
slivers: [
SliverToBoxAdapter(
Expand Down
1 change: 1 addition & 0 deletions lib/pages/member_dynamics/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class _MemberDynamicsPageState extends State<MemberDynamicsPage> {
edgeOffset: 10.0,
onRefresh: _memberDynamicController.onRefresh, // 下拉刷新时触发的异步操作
child: CustomScrollView(
cacheExtent: 3500,
physics: const ClampingScrollPhysics(),
// 不能设置controller,否则NestedScrollView的联动会失效
// controller: _memberDynamicController.scrollController,
Expand Down
1 change: 1 addition & 0 deletions lib/pages/member_search/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class _MemberSearchPageState extends State<MemberSearchPage>
);
}
return CustomScrollView(
cacheExtent: 3500,
physics: const AlwaysScrollableScrollPhysics(),
controller: scrollController,
slivers: <Widget>[
Expand Down
1 change: 1 addition & 0 deletions lib/pages/member_seasons_and_series/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class _MemberSeasonsAndSeriesPageState
edgeOffset: 10.0,
onRefresh: _ctr.onRefresh,
child: CustomScrollView(
cacheExtent: 3500,
physics: const ClampingScrollPhysics(),
slivers: [
FutureBuilder(
Expand Down
1 change: 1 addition & 0 deletions lib/pages/rank/zone/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class _ZonePageState extends State<ZonePage>
return await _zoneController.onRefresh();
},
child: CustomScrollView(
cacheExtent: 3500,
controller: scrollController,
slivers: [
SliverPadding(
Expand Down
1 change: 1 addition & 0 deletions lib/pages/rcmd/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class _RcmdPageState extends State<RcmdPage>
await Future.delayed(const Duration(milliseconds: 300));
},
child: CustomScrollView(
cacheExtent: 3500,
controller: _rcmdController.scrollController,
physics: const AlwaysScrollableScrollPhysics(),
slivers: [
Expand Down
Loading

0 comments on commit f3df508

Please sign in to comment.