feat: 首页,收藏页的UI,字体 组件封装

This commit is contained in:
chengsiwen committed 2026-07-03 15:38:01 +08:00
1 parent f233f1c642
commit 7f329aef44
32 files changed
+1110 -41

No files matched your search

+29 -3
View File
@@ -1,3 +1,5 @@
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:novyronst/common/help/help_image.dart';
import 'package:novyronst/pages/collect/pages/collection_page.dart';
@@ -90,10 +92,15 @@ class _AppBottomViewState extends State<AppBottomView> {
padding: const EdgeInsets.symmetric(horizontal: 16),
child: Stack(
children: [
HelpImage.asset(ConstImage.appBottom,
width: AppScreen.screenWidth-32, height: _height,
fit: BoxFit.fill,
Opacity(opacity: 0.9,
child: ImageFiltered(imageFilter: ImageFilter.blur(sigmaX: 1),
child: HelpImage.asset(ConstImage.appBottom,
width: AppScreen.screenWidth-32, height: _height,
fit: BoxFit.fill,
),
),
),
Positioned.fill(
child: Padding(padding: const EdgeInsets.symmetric(horizontal: 10),
child: Row(
@@ -115,6 +122,25 @@ class _AppBottomViewState extends State<AppBottomView> {
);
}
_aaaa(){
return ClipRRect(
borderRadius: BorderRadius.circular(12),
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),
child: Container(
color: Colors.white.withOpacity(0.1),
child: const Center(
child: Text(
'毛玻璃效果',
style: TextStyle(color: Colors.white),
),
),
),
),
);
}
Widget _buildTabItem(String title, int index, {required Function() onTap}) {
String icon = _currentIndex == index ? _selectedIcons[index] : _unselectedIcons[index];
Color tcolor = _currentIndex == index ? ConstColor.btGreen : ConstColor.btWhite;