feat(flutter): 剧场搜索框改白底并新增榜单新剧预约页
This commit is contained in:
1 parent
7a75ee6de8
commit
bfba2b7c72
15 files changed
+588
-9
No files matched your search
@@ -15,6 +15,9 @@ import '../../core/widgets/app_bottom_nav.dart';
|
||||
import '../../core/widgets/empty_state.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
import '../drama_detail/drama_detail_view.dart';
|
||||
import '../new_releases/new_releases_page.dart';
|
||||
import '../ranking/ranking_page.dart';
|
||||
import '../reserve/reserve_page.dart';
|
||||
import 'discover_binding.dart';
|
||||
import 'discover_logic.dart';
|
||||
import 'discover_types.dart';
|
||||
@@ -338,7 +341,7 @@ class _DiscoverPageState extends State<DiscoverPage> {
|
||||
icon: Icons.local_fire_department_rounded,
|
||||
color: AppColors.blue,
|
||||
label: l10n.rankingTab,
|
||||
onTap: () => _showComingSoon(l10n),
|
||||
onTap: () => _openPage(context, const RankingPage()),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: _toolbarGap),
|
||||
@@ -348,7 +351,7 @@ class _DiscoverPageState extends State<DiscoverPage> {
|
||||
icon: Icons.play_circle_fill_rounded,
|
||||
color: _newIconColor,
|
||||
label: l10n.newDramas,
|
||||
onTap: () => _showComingSoon(l10n),
|
||||
onTap: () => _openPage(context, const NewReleasesPage()),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: _toolbarGap),
|
||||
@@ -358,7 +361,7 @@ class _DiscoverPageState extends State<DiscoverPage> {
|
||||
icon: Icons.calendar_month_rounded,
|
||||
color: AppColors.blue,
|
||||
label: l10n.reserve,
|
||||
onTap: () => _showComingSoon(l10n),
|
||||
onTap: () => _openPage(context, const ReservePage()),
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -447,10 +450,8 @@ class _DiscoverPageState extends State<DiscoverPage> {
|
||||
);
|
||||
}
|
||||
|
||||
void _showComingSoon(AppLocalizations l10n) {
|
||||
ScaffoldMessenger.of(
|
||||
context,
|
||||
).showSnackBar(SnackBar(content: Text(l10n.comingSoon)));
|
||||
void _openPage(BuildContext context, Widget page) {
|
||||
Navigator.of(context).push<void>(MaterialPageRoute(builder: (_) => page));
|
||||
}
|
||||
|
||||
Widget _block(Widget child) =>
|
||||
|
||||
@@ -74,7 +74,7 @@ class _DiscoverSearchFieldState extends State<DiscoverSearchField> {
|
||||
height: _searchHeight,
|
||||
padding: const EdgeInsets.symmetric(horizontal: _searchPadding),
|
||||
decoration: BoxDecoration(
|
||||
color: _focused ? AppColors.card : AppColors.commentInput,
|
||||
color: AppColors.card,
|
||||
borderRadius: BorderRadius.circular(_searchRadius),
|
||||
border: Border.all(
|
||||
color: _focused ? AppColors.blue : Colors.transparent,
|
||||
|
||||
Reference in new issue
Block a user