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/material.dart';
import 'package:flutter/widgets.dart';
@ -54,6 +56,21 @@ class _RootWidgetState extends State<RootWidget> {
debugShowCheckedModeBanner: false,
theme: ThemeData.light(useMaterial3: true).copyWith(
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,
getPages: AppRoutes.routes,

View File

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

View File

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

View File

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

View File

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