diff --git a/wallpaper/lib/WallPaperApp.dart b/wallpaper/lib/WallPaperApp.dart index bc554bd..175d21c 100644 --- a/wallpaper/lib/WallPaperApp.dart +++ b/wallpaper/lib/WallPaperApp.dart @@ -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 { 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, diff --git a/wallpaper/lib/pages/downloadpage/downloadpage_view.dart b/wallpaper/lib/pages/downloadpage/downloadpage_view.dart index 989c793..73c1782 100644 --- a/wallpaper/lib/pages/downloadpage/downloadpage_view.dart +++ b/wallpaper/lib/pages/downloadpage/downloadpage_view.dart @@ -13,6 +13,7 @@ class DownloadPageView extends GetView { final Widget bodyView = getBodyWidget(); return Scaffold( appBar: AppBar( + centerTitle: true, title: const Text("下载"), ), body: bodyView, diff --git a/wallpaper/lib/pages/imgcategorypage/imgcategorypage_view.dart b/wallpaper/lib/pages/imgcategorypage/imgcategorypage_view.dart index 5d13e54..6bb450b 100644 --- a/wallpaper/lib/pages/imgcategorypage/imgcategorypage_view.dart +++ b/wallpaper/lib/pages/imgcategorypage/imgcategorypage_view.dart @@ -20,6 +20,9 @@ class ImgCategoryPageView extends GetView { return Scaffold( appBar: AppBar( title: Obx(() => Text(controller.stitle.value)) , + centerTitle: true, + // backgroundColor: Colors.transparent, + // foregroundColor: Colors.white, ), body: bodyView , ); diff --git a/wallpaper/lib/pages/mypage/mypage_view.dart b/wallpaper/lib/pages/mypage/mypage_view.dart index d2ee20c..d95a10d 100644 --- a/wallpaper/lib/pages/mypage/mypage_view.dart +++ b/wallpaper/lib/pages/mypage/mypage_view.dart @@ -9,6 +9,7 @@ class MyPageView extends GetView { const title = '我的'; return Scaffold( appBar: AppBar( + centerTitle: true, title: const Text(title), ), body: ListView( diff --git a/wallpaper/lib/pages/tabarpage/tabarpage_view.dart b/wallpaper/lib/pages/tabarpage/tabarpage_view.dart index 041b14c..e0fbaa9 100644 --- a/wallpaper/lib/pages/tabarpage/tabarpage_view.dart +++ b/wallpaper/lib/pages/tabarpage/tabarpage_view.dart @@ -18,8 +18,7 @@ class TabbarPageView extends GetView { return Scaffold( bottomNavigationBar:Obx(() => BottomNavigationBar( items: listBarItems, - unselectedItemColor:Colors.grey, - selectedItemColor: Colors.orange, + iconSize: 30, type: BottomNavigationBarType.fixed, selectedFontSize: 14, unselectedFontSize: 14,