This commit is contained in:
bluesea 2024-05-15 17:41:13 +08:00
parent b8e02c16a8
commit 387323b9e4
5 changed files with 23 additions and 2 deletions

View File

@ -1,3 +1,5 @@
import 'dart:ui';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
@ -54,6 +56,21 @@ class _RootWidgetState extends State<RootWidget> {
debugShowCheckedModeBanner: false, debugShowCheckedModeBanner: false,
theme: ThemeData.light(useMaterial3: true).copyWith( theme: ThemeData.light(useMaterial3: true).copyWith(
primaryColor: Colors.blue, primaryColor: Colors.blue,
bottomNavigationBarTheme: const BottomNavigationBarThemeData(
backgroundColor: Colors.black,
unselectedItemColor:Colors.grey,
selectedItemColor: Colors.white,
showSelectedLabels: false,
showUnselectedLabels: false,
),
appBarTheme: const AppBarTheme(
backgroundColor: Colors.black,
titleTextStyle: TextStyle(
color: Colors.white,
fontSize: 18,
),
foregroundColor:Colors.white
)
), ),
themeMode: ThemeMode.light, themeMode: ThemeMode.light,
getPages: AppRoutes.routes, getPages: AppRoutes.routes,

View File

@ -13,6 +13,7 @@ class DownloadPageView extends GetView<DownloadPageController> {
final Widget bodyView = getBodyWidget(); final Widget bodyView = getBodyWidget();
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
centerTitle: true,
title: const Text("下载"), title: const Text("下载"),
), ),
body: bodyView, body: bodyView,

View File

@ -20,6 +20,9 @@ class ImgCategoryPageView extends GetView<ImgCategoryPageController> {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: Obx(() => Text(controller.stitle.value)) , title: Obx(() => Text(controller.stitle.value)) ,
centerTitle: true,
// backgroundColor: Colors.transparent,
// foregroundColor: Colors.white,
), ),
body: bodyView , body: bodyView ,
); );

View File

@ -9,6 +9,7 @@ class MyPageView extends GetView {
const title = '我的'; const title = '我的';
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
centerTitle: true,
title: const Text(title), title: const Text(title),
), ),
body: ListView( body: ListView(

View File

@ -18,8 +18,7 @@ class TabbarPageView extends GetView <TabbarPageController>{
return Scaffold( return Scaffold(
bottomNavigationBar:Obx(() => BottomNavigationBar( bottomNavigationBar:Obx(() => BottomNavigationBar(
items: listBarItems, items: listBarItems,
unselectedItemColor:Colors.grey, iconSize: 30,
selectedItemColor: Colors.orange,
type: BottomNavigationBarType.fixed, type: BottomNavigationBarType.fixed,
selectedFontSize: 14, selectedFontSize: 14,
unselectedFontSize: 14, unselectedFontSize: 14,