opt: AppBarTheme
This commit is contained in:
@ -408,17 +408,29 @@ class TitleBar extends StatelessWidget {
|
|||||||
toolbarHeight: 45,
|
toolbarHeight: 45,
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: false,
|
||||||
centerTitle: false,
|
centerTitle: false,
|
||||||
title: Text(
|
elevation: 1,
|
||||||
title,
|
scrolledUnderElevation: 1,
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
title: Padding(
|
||||||
|
padding: const EdgeInsets.only(left: 12),
|
||||||
|
child: Text(
|
||||||
|
title,
|
||||||
|
style: Theme.of(context).textTheme.titleMedium,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
actions: !isFullScreen
|
actions: !isFullScreen
|
||||||
? [
|
? [
|
||||||
IconButton(
|
SizedBox(
|
||||||
icon: const Icon(Icons.close, size: 20),
|
width: 35,
|
||||||
onPressed: () => Navigator.pop(context),
|
height: 35,
|
||||||
|
child: IconButton(
|
||||||
|
icon: const Icon(Icons.close, size: 20),
|
||||||
|
style: ButtonStyle(
|
||||||
|
padding: MaterialStateProperty.all(EdgeInsets.zero),
|
||||||
|
),
|
||||||
|
onPressed: () => Navigator.pop(context),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 14),
|
const SizedBox(width: 8),
|
||||||
]
|
]
|
||||||
: null,
|
: null,
|
||||||
);
|
);
|
||||||
|
@ -222,13 +222,27 @@ class BuildMainApp extends StatelessWidget {
|
|||||||
elevation: 20,
|
elevation: 20,
|
||||||
);
|
);
|
||||||
|
|
||||||
return GetMaterialApp(
|
AppBarTheme appBarTheme(ColorScheme colorScheme) {
|
||||||
title: 'PiliPala',
|
return AppBarTheme(
|
||||||
theme: ThemeData(
|
backgroundColor: currentThemeValue == ThemeType.dark
|
||||||
colorScheme: currentThemeValue == ThemeType.dark
|
? darkColorScheme.surface
|
||||||
? darkColorScheme
|
: lightColorScheme.surface,
|
||||||
: lightColorScheme,
|
foregroundColor: currentThemeValue == ThemeType.dark
|
||||||
|
? darkColorScheme.onSurface
|
||||||
|
: lightColorScheme.onSurface,
|
||||||
|
elevation: 0,
|
||||||
|
titleSpacing: 0,
|
||||||
|
scrolledUnderElevation: 0,
|
||||||
|
// titleTextStyle: TextStyle(
|
||||||
|
// fontSize: Theme.of(context).textTheme.titleLarge!.fontSize),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
ThemeData buildThemeData(ColorScheme colorScheme) {
|
||||||
|
return ThemeData(
|
||||||
|
colorScheme: colorScheme,
|
||||||
snackBarTheme: snackBarTheme,
|
snackBarTheme: snackBarTheme,
|
||||||
|
appBarTheme: appBarTheme(colorScheme),
|
||||||
pageTransitionsTheme: const PageTransitionsTheme(
|
pageTransitionsTheme: const PageTransitionsTheme(
|
||||||
builders: <TargetPlatform, PageTransitionsBuilder>{
|
builders: <TargetPlatform, PageTransitionsBuilder>{
|
||||||
TargetPlatform.android: ZoomPageTransitionsBuilder(
|
TargetPlatform.android: ZoomPageTransitionsBuilder(
|
||||||
@ -236,12 +250,20 @@ class BuildMainApp extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return GetMaterialApp(
|
||||||
|
title: 'PiliPala',
|
||||||
|
theme: buildThemeData(
|
||||||
|
currentThemeValue == ThemeType.dark
|
||||||
|
? darkColorScheme
|
||||||
|
: lightColorScheme,
|
||||||
),
|
),
|
||||||
darkTheme: ThemeData(
|
darkTheme: buildThemeData(
|
||||||
colorScheme: currentThemeValue == ThemeType.light
|
currentThemeValue == ThemeType.light
|
||||||
? lightColorScheme
|
? lightColorScheme
|
||||||
: darkColorScheme,
|
: darkColorScheme,
|
||||||
snackBarTheme: snackBarTheme,
|
|
||||||
),
|
),
|
||||||
localizationsDelegates: const [
|
localizationsDelegates: const [
|
||||||
GlobalCupertinoLocalizations.delegate,
|
GlobalCupertinoLocalizations.delegate,
|
||||||
|
@ -39,9 +39,7 @@ class _AboutPageState extends State<AboutPage> {
|
|||||||
TextStyle subTitleStyle =
|
TextStyle subTitleStyle =
|
||||||
TextStyle(fontSize: 13, color: Theme.of(context).colorScheme.outline);
|
TextStyle(fontSize: 13, color: Theme.of(context).colorScheme.outline);
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('关于')),
|
||||||
title: Text('关于', style: Theme.of(context).textTheme.titleMedium),
|
|
||||||
),
|
|
||||||
body: SingleChildScrollView(
|
body: SingleChildScrollView(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
|
@ -55,14 +55,9 @@ class _BlackListPageState extends State<BlackListPage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
elevation: 0,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
titleSpacing: 0,
|
|
||||||
centerTitle: false,
|
|
||||||
title: Obx(
|
title: Obx(
|
||||||
() => Text(
|
() => Text(
|
||||||
'黑名单管理 ${_blackListController.total.value == 0 ? '' : '- ${_blackListController.total.value}'}',
|
'黑名单管理 ${_blackListController.total.value == 0 ? '' : '- ${_blackListController.total.value}'}',
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -111,14 +111,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
int rpid = replyItem.rpid!;
|
int rpid = replyItem.rpid!;
|
||||||
Get.to(
|
Get.to(
|
||||||
() => Scaffold(
|
() => Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('评论详情')),
|
||||||
titleSpacing: 0,
|
|
||||||
centerTitle: false,
|
|
||||||
title: Text(
|
|
||||||
'评论详情',
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
body: VideoReplyReplyPanel(
|
body: VideoReplyReplyPanel(
|
||||||
oid: oid,
|
oid: oid,
|
||||||
rpid: rpid,
|
rpid: rpid,
|
||||||
@ -192,10 +185,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
elevation: 0,
|
|
||||||
scrolledUnderElevation: 1,
|
scrolledUnderElevation: 1,
|
||||||
centerTitle: false,
|
|
||||||
titleSpacing: 0,
|
|
||||||
title: StreamBuilder(
|
title: StreamBuilder(
|
||||||
stream: titleStreamC.stream,
|
stream: titleStreamC.stream,
|
||||||
initialData: false,
|
initialData: false,
|
||||||
|
@ -78,8 +78,6 @@ class _DynamicsPageState extends State<DynamicsPage>
|
|||||||
super.build(context);
|
super.build(context);
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
elevation: 0,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
title: SizedBox(
|
title: SizedBox(
|
||||||
height: 34,
|
height: 34,
|
||||||
child: Stack(
|
child: Stack(
|
||||||
|
@ -49,13 +49,8 @@ class _FansPageState extends State<FansPage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
elevation: 0,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
centerTitle: false,
|
|
||||||
titleSpacing: 0,
|
|
||||||
title: Text(
|
title: Text(
|
||||||
_fansController.isOwner.value ? '我的粉丝' : '${_fansController.name}的粉丝',
|
_fansController.isOwner.value ? '我的粉丝' : '${_fansController.name}的粉丝',
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
body: RefreshIndicator(
|
body: RefreshIndicator(
|
||||||
|
@ -40,11 +40,8 @@ class _FavPageState extends State<FavPage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
centerTitle: false,
|
|
||||||
titleSpacing: 0,
|
|
||||||
title: Obx(() => Text(
|
title: Obx(() => Text(
|
||||||
'${_favController.isOwner.value ? '我' : 'Ta'}的收藏',
|
'${_favController.isOwner.value ? '我' : 'Ta'}的收藏',
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
)),
|
)),
|
||||||
actions: [
|
actions: [
|
||||||
Obx(() => !_favController.isOwner.value
|
Obx(() => !_favController.isOwner.value
|
||||||
|
@ -19,8 +19,6 @@ class _FavEditPageState extends State<FavEditPage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
elevation: 0,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
title: Obx(
|
title: Obx(
|
||||||
() => _favEditController.type.value == 'add'
|
() => _favEditController.type.value == 'add'
|
||||||
? Text(
|
? Text(
|
||||||
@ -32,7 +30,6 @@ class _FavEditPageState extends State<FavEditPage> {
|
|||||||
style: Theme.of(context).textTheme.titleMedium,
|
style: Theme.of(context).textTheme.titleMedium,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
centerTitle: false,
|
|
||||||
actions: [
|
actions: [
|
||||||
Obx(
|
Obx(
|
||||||
() => _favEditController.privacy.value == 0
|
() => _favEditController.privacy.value == 0
|
||||||
|
@ -47,7 +47,6 @@ class _FavSearchPageState extends State<FavSearchPage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
titleSpacing: 0,
|
|
||||||
actions: [
|
actions: [
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () => _favSearchCtr.submit(),
|
onPressed: () => _favSearchCtr.submit(),
|
||||||
|
@ -27,15 +27,10 @@ class _FollowPageState extends State<FollowPage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
elevation: 0,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
titleSpacing: 0,
|
|
||||||
centerTitle: false,
|
|
||||||
title: Text(
|
title: Text(
|
||||||
_followController.isOwner.value
|
_followController.isOwner.value
|
||||||
? '我的关注'
|
? '我的关注'
|
||||||
: '${_followController.name}的关注',
|
: '${_followController.name}的关注',
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
IconButton(
|
IconButton(
|
||||||
|
@ -47,7 +47,6 @@ class _FollowSearchPageState extends State<FollowSearchPage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
titleSpacing: 0,
|
|
||||||
actions: [
|
actions: [
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: reRequest,
|
onPressed: reRequest,
|
||||||
|
@ -69,12 +69,7 @@ class _HistoryPageState extends State<HistoryPage> {
|
|||||||
appBar: AppBarWidget(
|
appBar: AppBarWidget(
|
||||||
visible: _historyController.enableMultiple.value,
|
visible: _historyController.enableMultiple.value,
|
||||||
child1: AppBar(
|
child1: AppBar(
|
||||||
titleSpacing: 0,
|
title: const Text('观看记录'),
|
||||||
centerTitle: false,
|
|
||||||
title: Text(
|
|
||||||
'观看记录',
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
|
||||||
actions: [
|
actions: [
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () => Get.toNamed('/historySearch'),
|
onPressed: () => Get.toNamed('/historySearch'),
|
||||||
@ -127,8 +122,6 @@ class _HistoryPageState extends State<HistoryPage> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
child2: AppBar(
|
child2: AppBar(
|
||||||
titleSpacing: 0,
|
|
||||||
centerTitle: false,
|
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
_historyController.enableMultiple.value = false;
|
_historyController.enableMultiple.value = false;
|
||||||
@ -143,7 +136,6 @@ class _HistoryPageState extends State<HistoryPage> {
|
|||||||
title: Obx(
|
title: Obx(
|
||||||
() => Text(
|
() => Text(
|
||||||
'已选择${_historyController.checkedCount.value}项',
|
'已选择${_historyController.checkedCount.value}项',
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
|
@ -45,7 +45,6 @@ class _HistorySearchPageState extends State<HistorySearchPage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
titleSpacing: 0,
|
|
||||||
actions: [
|
actions: [
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () => _hisCtr.submit(),
|
onPressed: () => _hisCtr.submit(),
|
||||||
|
@ -54,7 +54,6 @@ class _HomePageState extends State<HomePage>
|
|||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
toolbarHeight: 0,
|
toolbarHeight: 0,
|
||||||
elevation: 0,
|
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
systemOverlayStyle: Platform.isAndroid
|
systemOverlayStyle: Platform.isAndroid
|
||||||
? SystemUiOverlayStyle(
|
? SystemUiOverlayStyle(
|
||||||
|
@ -28,7 +28,6 @@ class HomeAppBar extends StatelessWidget {
|
|||||||
background: Column(
|
background: Column(
|
||||||
children: [
|
children: [
|
||||||
AppBar(
|
AppBar(
|
||||||
centerTitle: false,
|
|
||||||
title: const Text(
|
title: const Text(
|
||||||
'PiLiPaLa',
|
'PiLiPaLa',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@ -73,8 +72,6 @@ class HomeAppBar extends StatelessWidget {
|
|||||||
|
|
||||||
const SizedBox(width: 10)
|
const SizedBox(width: 10)
|
||||||
],
|
],
|
||||||
elevation: 0,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -104,14 +104,7 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
|
|||||||
int rpid = replyItem.rpid!;
|
int rpid = replyItem.rpid!;
|
||||||
Get.to(
|
Get.to(
|
||||||
() => Scaffold(
|
() => Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('评论详情')),
|
||||||
titleSpacing: 0,
|
|
||||||
centerTitle: false,
|
|
||||||
title: Text(
|
|
||||||
'评论详情',
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
body: VideoReplyReplyPanel(
|
body: VideoReplyReplyPanel(
|
||||||
oid: oid,
|
oid: oid,
|
||||||
rpid: rpid,
|
rpid: rpid,
|
||||||
@ -127,12 +120,7 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
centerTitle: false,
|
title: Text(title),
|
||||||
titleSpacing: 0,
|
|
||||||
title: Text(
|
|
||||||
title,
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
|
||||||
actions: [
|
actions: [
|
||||||
const SizedBox(width: 4),
|
const SizedBox(width: 4),
|
||||||
IconButton(
|
IconButton(
|
||||||
|
@ -28,18 +28,12 @@ class _LaterPageState extends State<LaterPage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
titleSpacing: 0,
|
|
||||||
centerTitle: false,
|
|
||||||
title: Obx(
|
title: Obx(
|
||||||
() => _laterController.laterList.isNotEmpty
|
() => _laterController.laterList.isNotEmpty
|
||||||
? Text(
|
? Text(
|
||||||
'稍后再看 (${_laterController.laterList.length})',
|
'稍后再看 (${_laterController.laterList.length})',
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
)
|
)
|
||||||
: Text(
|
: const Text('稍后再看'),
|
||||||
'稍后再看',
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
Obx(
|
Obx(
|
||||||
|
@ -42,13 +42,8 @@ class _LiveFollowPageState extends State<LiveFollowPage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
elevation: 0,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
titleSpacing: 0,
|
|
||||||
centerTitle: false,
|
|
||||||
title: Obx(() => Text(
|
title: Obx(() => Text(
|
||||||
'${_liveFollowController.liveFollowingCount}人正在直播中',
|
'${_liveFollowController.liveFollowingCount}人正在直播中',
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
)),
|
)),
|
||||||
),
|
),
|
||||||
body: Container(
|
body: Container(
|
||||||
|
@ -259,8 +259,6 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
|||||||
left: 0,
|
left: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
child: AppBar(
|
child: AppBar(
|
||||||
centerTitle: false,
|
|
||||||
titleSpacing: 0,
|
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
foregroundColor: Colors.white,
|
foregroundColor: Colors.white,
|
||||||
toolbarHeight: isPortrait ? 56 : 0,
|
toolbarHeight: isPortrait ? 56 : 0,
|
||||||
|
@ -47,10 +47,7 @@ class _BottomControlState extends State<BottomControl> {
|
|||||||
return AppBar(
|
return AppBar(
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
foregroundColor: Colors.white,
|
foregroundColor: Colors.white,
|
||||||
elevation: 0,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
primary: false,
|
primary: false,
|
||||||
centerTitle: false,
|
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: false,
|
||||||
titleSpacing: 14,
|
titleSpacing: 14,
|
||||||
title: Row(
|
title: Row(
|
||||||
|
@ -47,12 +47,9 @@ class _MemberArchivePageState extends State<MemberArchivePage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
titleSpacing: 0,
|
|
||||||
centerTitle: false,
|
|
||||||
title: Obx(
|
title: Obx(
|
||||||
() => Text(
|
() => Text(
|
||||||
'${_memberArchivesController.isOwner.value ? '我' : 'Ta'}的投稿 - ${_memberArchivesController.currentOrder['label']}',
|
'${_memberArchivesController.isOwner.value ? '我' : 'Ta'}的投稿 - ${_memberArchivesController.currentOrder['label']}',
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
|
@ -48,12 +48,9 @@ class _MemberArticlePageState extends State<MemberArticlePage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
titleSpacing: 0,
|
|
||||||
centerTitle: false,
|
|
||||||
title: Obx(
|
title: Obx(
|
||||||
() => Text(
|
() => Text(
|
||||||
'${_memberArticleController.isOwner.value ? '我' : 'Ta'}的图文',
|
'${_memberArticleController.isOwner.value ? '我' : 'Ta'}的图文',
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -20,7 +20,6 @@ class MemberCoinsItem extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
String heroTag = Utils.makeHeroTag(coinItem.aid);
|
String heroTag = Utils.makeHeroTag(coinItem.aid);
|
||||||
return Card(
|
return Card(
|
||||||
elevation: 0,
|
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
margin: EdgeInsets.zero,
|
margin: EdgeInsets.zero,
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
|
@ -54,12 +54,9 @@ class _MemberDynamicsPageState extends State<MemberDynamicsPage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
titleSpacing: 0,
|
|
||||||
centerTitle: false,
|
|
||||||
title: Obx(
|
title: Obx(
|
||||||
() => Text(
|
() => Text(
|
||||||
'${_memberDynamicController.isOwner.value ? '我' : 'Ta'}的动态',
|
'${_memberDynamicController.isOwner.value ? '我' : 'Ta'}的动态',
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -49,7 +49,6 @@ class _MemberSearchPageState extends State<MemberSearchPage>
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
titleSpacing: 0,
|
|
||||||
actions: [
|
actions: [
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () => _memberSearchCtr.submit(),
|
onPressed: () => _memberSearchCtr.submit(),
|
||||||
|
@ -41,12 +41,7 @@ class _MemberSeasonsPageState extends State<MemberSeasonsPage> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: Text(Get.parameters['seasonName']!)),
|
||||||
titleSpacing: 0,
|
|
||||||
centerTitle: false,
|
|
||||||
title: Text(Get.parameters['seasonName']!,
|
|
||||||
style: Theme.of(context).textTheme.titleMedium),
|
|
||||||
),
|
|
||||||
body: Padding(
|
body: Padding(
|
||||||
padding: const EdgeInsets.only(
|
padding: const EdgeInsets.only(
|
||||||
left: StyleString.safeSpace,
|
left: StyleString.safeSpace,
|
||||||
|
@ -47,9 +47,7 @@ class _MessageAtPageState extends State<MessageAtPage> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('@我的')),
|
||||||
title: const Text('@我的'),
|
|
||||||
),
|
|
||||||
body: RefreshIndicator(
|
body: RefreshIndicator(
|
||||||
onRefresh: () async {
|
onRefresh: () async {
|
||||||
await _messageAtCtr.queryMessageAt(type: 'init');
|
await _messageAtCtr.queryMessageAt(type: 'init');
|
||||||
|
@ -47,9 +47,7 @@ class _MessageLikePageState extends State<MessageLikePage> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('收到的赞')),
|
||||||
title: const Text('收到的赞'),
|
|
||||||
),
|
|
||||||
body: RefreshIndicator(
|
body: RefreshIndicator(
|
||||||
onRefresh: () async {
|
onRefresh: () async {
|
||||||
await _messageLikeCtr.queryMessageLike(type: 'init');
|
await _messageLikeCtr.queryMessageLike(type: 'init');
|
||||||
|
@ -48,9 +48,7 @@ class _MessageReplyPageState extends State<MessageReplyPage> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('回复我的')),
|
||||||
title: const Text('回复我的'),
|
|
||||||
),
|
|
||||||
body: RefreshIndicator(
|
body: RefreshIndicator(
|
||||||
onRefresh: () async {
|
onRefresh: () async {
|
||||||
await _messageReplyCtr.queryMessageReply(type: 'init');
|
await _messageReplyCtr.queryMessageReply(type: 'init');
|
||||||
|
@ -29,9 +29,7 @@ class _MessageSystemPageState extends State<MessageSystemPage> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('系统通知')),
|
||||||
title: const Text('系统通知'),
|
|
||||||
),
|
|
||||||
body: RefreshIndicator(
|
body: RefreshIndicator(
|
||||||
onRefresh: () async {
|
onRefresh: () async {
|
||||||
await _messageSystemCtr.queryAndProcessMessages();
|
await _messageSystemCtr.queryAndProcessMessages();
|
||||||
|
@ -44,8 +44,6 @@ class _MinePageState extends State<MinePage>
|
|||||||
super.build(context);
|
super.build(context);
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
elevation: 0,
|
|
||||||
actions: [
|
actions: [
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Icon(Icons.search_outlined),
|
icon: const Icon(Icons.search_outlined),
|
||||||
|
@ -23,9 +23,7 @@ class _MineEditPageState extends State<MineEditPage> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('编辑资料')),
|
||||||
title: const Text('编辑资料'),
|
|
||||||
),
|
|
||||||
body: SingleChildScrollView(
|
body: SingleChildScrollView(
|
||||||
padding: const EdgeInsets.all(16.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
child: FutureBuilder(
|
child: FutureBuilder(
|
||||||
|
@ -38,7 +38,6 @@ class _RankPageState extends State<RankPage>
|
|||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
toolbarHeight: 0,
|
toolbarHeight: 0,
|
||||||
elevation: 0,
|
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
systemOverlayStyle: Platform.isAndroid
|
systemOverlayStyle: Platform.isAndroid
|
||||||
? SystemUiOverlayStyle(
|
? SystemUiOverlayStyle(
|
||||||
|
@ -49,7 +49,6 @@ class _SearchPageState extends State<SearchPage> with RouteAware {
|
|||||||
width: 1,
|
width: 1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
titleSpacing: 0,
|
|
||||||
actions: [
|
actions: [
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () => _searchController.submit(),
|
onPressed: () => _searchController.submit(),
|
||||||
|
@ -51,8 +51,6 @@ class _SearchResultPageState extends State<SearchResultPage>
|
|||||||
width: 1,
|
width: 1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
titleSpacing: 0,
|
|
||||||
centerTitle: false,
|
|
||||||
title: GestureDetector(
|
title: GestureDetector(
|
||||||
onTap: () => Get.back(),
|
onTap: () => Get.back(),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
|
@ -131,14 +131,7 @@ class _ExtraSettingState extends State<ExtraSetting> {
|
|||||||
.labelMedium!
|
.labelMedium!
|
||||||
.copyWith(color: Theme.of(context).colorScheme.outline);
|
.copyWith(color: Theme.of(context).colorScheme.outline);
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('其他设置')),
|
||||||
centerTitle: false,
|
|
||||||
titleSpacing: 0,
|
|
||||||
title: Text(
|
|
||||||
'其他设置',
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
body: ListView(
|
body: ListView(
|
||||||
children: [
|
children: [
|
||||||
const SetSwitchItem(
|
const SetSwitchItem(
|
||||||
|
@ -38,10 +38,7 @@ class _ColorSelectPageState extends State<ColorSelectPage> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('选择应用主题')),
|
||||||
centerTitle: false,
|
|
||||||
title: const Text('选择应用主题'),
|
|
||||||
),
|
|
||||||
body: ListView(
|
body: ListView(
|
||||||
children: [
|
children: [
|
||||||
Obx(
|
Obx(
|
||||||
|
@ -100,9 +100,7 @@ class _LogsPageState extends State<LogsPage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
centerTitle: false,
|
title: const Text('日志'),
|
||||||
titleSpacing: 0,
|
|
||||||
title: Text('日志', style: Theme.of(context).textTheme.titleMedium),
|
|
||||||
actions: [
|
actions: [
|
||||||
PopupMenuButton<String>(
|
PopupMenuButton<String>(
|
||||||
onSelected: (String type) {
|
onSelected: (String type) {
|
||||||
|
@ -34,14 +34,7 @@ class _PlayGesturePageState extends State<PlayGesturePage> {
|
|||||||
.labelMedium!
|
.labelMedium!
|
||||||
.copyWith(color: Theme.of(context).colorScheme.outline);
|
.copyWith(color: Theme.of(context).colorScheme.outline);
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('手势设置')),
|
||||||
centerTitle: false,
|
|
||||||
titleSpacing: 0,
|
|
||||||
title: Text(
|
|
||||||
'手势设置',
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
body: ListView(
|
body: ListView(
|
||||||
children: [
|
children: [
|
||||||
ListTile(
|
ListTile(
|
||||||
|
@ -204,16 +204,7 @@ class _PlaySpeedPageState extends State<PlaySpeedPage> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('倍速设置')),
|
||||||
elevation: 0,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
titleSpacing: 0,
|
|
||||||
centerTitle: false,
|
|
||||||
title: Text(
|
|
||||||
'倍速设置',
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
body: SingleChildScrollView(
|
body: SingleChildScrollView(
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
@ -67,14 +67,7 @@ class _PlaySettingState extends State<PlaySetting> {
|
|||||||
.labelMedium!
|
.labelMedium!
|
||||||
.copyWith(color: Theme.of(context).colorScheme.outline);
|
.copyWith(color: Theme.of(context).colorScheme.outline);
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('播放设置')),
|
||||||
centerTitle: false,
|
|
||||||
titleSpacing: 0,
|
|
||||||
title: Text(
|
|
||||||
'播放设置',
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
body: ListView(
|
body: ListView(
|
||||||
children: [
|
children: [
|
||||||
ListTile(
|
ListTile(
|
||||||
|
@ -32,14 +32,7 @@ class _PrivacySettingState extends State<PrivacySetting> {
|
|||||||
.labelMedium!
|
.labelMedium!
|
||||||
.copyWith(color: Theme.of(context).colorScheme.outline);
|
.copyWith(color: Theme.of(context).colorScheme.outline);
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('隐私设置')),
|
||||||
centerTitle: false,
|
|
||||||
titleSpacing: 0,
|
|
||||||
title: Text(
|
|
||||||
'隐私设置',
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
body: Column(
|
body: Column(
|
||||||
children: [
|
children: [
|
||||||
ListTile(
|
ListTile(
|
||||||
|
@ -53,14 +53,7 @@ class _RecommendSettingState extends State<RecommendSetting> {
|
|||||||
.labelMedium!
|
.labelMedium!
|
||||||
.copyWith(color: Theme.of(context).colorScheme.outline);
|
.copyWith(color: Theme.of(context).colorScheme.outline);
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('推荐设置')),
|
||||||
centerTitle: false,
|
|
||||||
titleSpacing: 0,
|
|
||||||
title: Text(
|
|
||||||
'推荐设置',
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
body: ListView(
|
body: ListView(
|
||||||
children: [
|
children: [
|
||||||
ListTile(
|
ListTile(
|
||||||
|
@ -49,14 +49,7 @@ class _StyleSettingState extends State<StyleSetting> {
|
|||||||
.labelMedium!
|
.labelMedium!
|
||||||
.copyWith(color: Theme.of(context).colorScheme.outline);
|
.copyWith(color: Theme.of(context).colorScheme.outline);
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('外观设置')),
|
||||||
centerTitle: false,
|
|
||||||
titleSpacing: 0,
|
|
||||||
title: Text(
|
|
||||||
'外观设置',
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
body: ListView(
|
body: ListView(
|
||||||
children: [
|
children: [
|
||||||
Obx(
|
Obx(
|
||||||
|
@ -9,14 +9,7 @@ class SettingPage extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final SettingController settingController = Get.put(SettingController());
|
final SettingController settingController = Get.put(SettingController());
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('设置')),
|
||||||
centerTitle: false,
|
|
||||||
titleSpacing: 0,
|
|
||||||
title: Text(
|
|
||||||
'设置',
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
body: Column(
|
body: Column(
|
||||||
children: [
|
children: [
|
||||||
ListTile(
|
ListTile(
|
||||||
|
@ -40,12 +40,8 @@ class _SubPageState extends State<SubPage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
centerTitle: false,
|
title:
|
||||||
titleSpacing: 0,
|
Obx(() => Text('${_subController.isOwner.value ? '我' : 'Ta'}的订阅')),
|
||||||
title: Obx(() => Text(
|
|
||||||
'${_subController.isOwner.value ? '我' : 'Ta'}的订阅',
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
)),
|
|
||||||
),
|
),
|
||||||
body: FutureBuilder(
|
body: FutureBuilder(
|
||||||
future: _futureBuilderFuture,
|
future: _futureBuilderFuture,
|
||||||
|
@ -30,8 +30,6 @@ class _FavPanelState extends State<FavPanel> {
|
|||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
AppBar(
|
AppBar(
|
||||||
centerTitle: false,
|
|
||||||
elevation: 0,
|
|
||||||
shape: const RoundedRectangleBorder(
|
shape: const RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.vertical(
|
borderRadius: BorderRadius.vertical(
|
||||||
top: Radius.circular(20),
|
top: Radius.circular(20),
|
||||||
|
@ -57,8 +57,6 @@ class _GroupPanelState extends State<GroupPanel> {
|
|||||||
return Column(
|
return Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
AppBar(
|
AppBar(
|
||||||
centerTitle: false,
|
|
||||||
elevation: 0,
|
|
||||||
shape: const RoundedRectangleBorder(
|
shape: const RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.vertical(
|
borderRadius: BorderRadius.vertical(
|
||||||
top: Radius.circular(20),
|
top: Radius.circular(20),
|
||||||
|
@ -89,7 +89,6 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel> {
|
|||||||
return AppBar(
|
return AppBar(
|
||||||
toolbarHeight: 45,
|
toolbarHeight: 45,
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: false,
|
||||||
centerTitle: false,
|
|
||||||
title: Text(
|
title: Text(
|
||||||
'评论详情',
|
'评论详情',
|
||||||
style: Theme.of(context).textTheme.titleSmall,
|
style: Theme.of(context).textTheme.titleSmall,
|
||||||
|
@ -614,8 +614,6 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
builder: ((context, snapshot) {
|
builder: ((context, snapshot) {
|
||||||
return AppBar(
|
return AppBar(
|
||||||
backgroundColor: Colors.black,
|
backgroundColor: Colors.black,
|
||||||
elevation: 0,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
@ -861,12 +859,8 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
return AppBar(
|
return AppBar(
|
||||||
backgroundColor: Colors.transparent, // 使背景透明
|
backgroundColor: Colors.transparent, // 使背景透明
|
||||||
foregroundColor: Colors.white,
|
foregroundColor: Colors.white,
|
||||||
elevation: 0,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
primary: false,
|
primary: false,
|
||||||
centerTitle: false,
|
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: false,
|
||||||
titleSpacing: 0,
|
|
||||||
title: Container(
|
title: Container(
|
||||||
height: kToolbarHeight,
|
height: kToolbarHeight,
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 14),
|
padding: const EdgeInsets.symmetric(horizontal: 14),
|
||||||
|
@ -33,8 +33,6 @@ class ScrollAppBar extends StatelessWidget {
|
|||||||
padding: EdgeInsets.only(top: statusBarHeight),
|
padding: EdgeInsets.only(top: statusBarHeight),
|
||||||
child: AppBar(
|
child: AppBar(
|
||||||
primary: false,
|
primary: false,
|
||||||
elevation: 0,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
title: TextButton(
|
title: TextButton(
|
||||||
onPressed: () => callback(),
|
onPressed: () => callback(),
|
||||||
|
@ -1155,10 +1155,7 @@ class _HeaderControlState extends State<HeaderControl> {
|
|||||||
return AppBar(
|
return AppBar(
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
foregroundColor: Colors.white,
|
foregroundColor: Colors.white,
|
||||||
elevation: 0,
|
|
||||||
scrolledUnderElevation: 0,
|
|
||||||
primary: false,
|
primary: false,
|
||||||
centerTitle: false,
|
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: false,
|
||||||
titleSpacing: 14,
|
titleSpacing: 14,
|
||||||
title: Row(
|
title: Row(
|
||||||
|
@ -85,7 +85,6 @@ class _MediaListPanelState extends State<MediaListPanel> {
|
|||||||
AppBar(
|
AppBar(
|
||||||
toolbarHeight: 45,
|
toolbarHeight: 45,
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: false,
|
||||||
centerTitle: false,
|
|
||||||
title: Text(
|
title: Text(
|
||||||
widget.panelTitle ?? '稍后再看',
|
widget.panelTitle ?? '稍后再看',
|
||||||
style: Theme.of(context).textTheme.titleSmall,
|
style: Theme.of(context).textTheme.titleSmall,
|
||||||
|
@ -19,12 +19,7 @@ class _WebviewPageState extends State<WebviewPage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
centerTitle: false,
|
title: Text(_webviewController.pageTitle),
|
||||||
titleSpacing: 0,
|
|
||||||
title: Text(
|
|
||||||
_webviewController.pageTitle,
|
|
||||||
style: Theme.of(context).textTheme.titleMedium,
|
|
||||||
),
|
|
||||||
actions: [
|
actions: [
|
||||||
const SizedBox(width: 4),
|
const SizedBox(width: 4),
|
||||||
IconButton(
|
IconButton(
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import 'package:easy_debounce/easy_throttle.dart';
|
import 'package:easy_debounce/easy_throttle.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:pilipala/common/constants.dart';
|
import 'package:pilipala/common/constants.dart';
|
||||||
import 'package:pilipala/common/skeleton/skeleton.dart';
|
import 'package:pilipala/common/skeleton/skeleton.dart';
|
||||||
@ -45,9 +44,7 @@ class _WhisperPageState extends State<WhisperPage> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(title: const Text('消息')),
|
||||||
title: const Text('消息'),
|
|
||||||
),
|
|
||||||
body: RefreshIndicator(
|
body: RefreshIndicator(
|
||||||
onRefresh: () async {
|
onRefresh: () async {
|
||||||
_whisperController.unread();
|
_whisperController.unread();
|
||||||
|
Reference in New Issue
Block a user