mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: dynamic appbar
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -186,14 +186,6 @@ class _DynamicsPageState extends State<DynamicsPage>
|
|||||||
: null,
|
: null,
|
||||||
leadingWidth: 50,
|
leadingWidth: 50,
|
||||||
toolbarHeight: 50,
|
toolbarHeight: 50,
|
||||||
elevation: 0,
|
|
||||||
backgroundColor: Colors.transparent,
|
|
||||||
systemOverlayStyle: SystemUiOverlayStyle(
|
|
||||||
statusBarIconBrightness:
|
|
||||||
Theme.of(context).brightness == Brightness.light
|
|
||||||
? Brightness.dark
|
|
||||||
: Brightness.light,
|
|
||||||
),
|
|
||||||
title: SizedBox(
|
title: SizedBox(
|
||||||
height: 50,
|
height: 50,
|
||||||
child: TabBar(
|
child: TabBar(
|
||||||
|
|||||||
@@ -147,6 +147,7 @@ class _MainAppState extends State<MainApp>
|
|||||||
bool isPortait = constriants.maxHeight > constriants.maxWidth;
|
bool isPortait = constriants.maxHeight > constriants.maxWidth;
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
|
resizeToAvoidBottomInset: false,
|
||||||
extendBody: true,
|
extendBody: true,
|
||||||
body: Row(
|
body: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
|||||||
@@ -62,13 +62,6 @@ class _MediaPageState extends State<MediaPage>
|
|||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
toolbarHeight: 30,
|
toolbarHeight: 30,
|
||||||
backgroundColor: Colors.transparent,
|
|
||||||
systemOverlayStyle: SystemUiOverlayStyle(
|
|
||||||
statusBarIconBrightness:
|
|
||||||
Theme.of(context).brightness == Brightness.light
|
|
||||||
? Brightness.dark
|
|
||||||
: Brightness.light,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
body: SingleChildScrollView(
|
body: SingleChildScrollView(
|
||||||
controller: mediaController.scrollController,
|
controller: mediaController.scrollController,
|
||||||
|
|||||||
@@ -127,15 +127,15 @@ class UserInfoCard extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
if (card.vip?.vipStatus == 1) ...[
|
if (card.vip?.vipStatus == 1) ...[
|
||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
CachedNetworkImage(
|
Image.network(
|
||||||
imageUrl: card.vip!.label!.image!,
|
card.vip!.label!.image!,
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
if (card.nameplate?.image?.isNotEmpty == true) ...[
|
if (card.nameplate?.image?.isNotEmpty == true) ...[
|
||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
CachedNetworkImage(
|
Image.network(
|
||||||
imageUrl: card.nameplate!.image!,
|
card.nameplate!.image!,
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import 'dart:math';
|
|||||||
import 'package:PiliPalaX/common/widgets/imageview.dart';
|
import 'package:PiliPalaX/common/widgets/imageview.dart';
|
||||||
import 'package:PiliPalaX/http/video.dart';
|
import 'package:PiliPalaX/http/video.dart';
|
||||||
import 'package:PiliPalaX/utils/extension.dart';
|
import 'package:PiliPalaX/utils/extension.dart';
|
||||||
import 'package:cached_network_image/cached_network_image.dart';
|
|
||||||
import 'package:flutter/gestures.dart';
|
import 'package:flutter/gestures.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
@@ -906,8 +905,8 @@ class ReplyItem extends StatelessWidget {
|
|||||||
[
|
[
|
||||||
if (content.jumpUrl[patternStr]?['prefix_icon'] != null) ...[
|
if (content.jumpUrl[patternStr]?['prefix_icon'] != null) ...[
|
||||||
WidgetSpan(
|
WidgetSpan(
|
||||||
child: CachedNetworkImage(
|
child: Image.network(
|
||||||
imageUrl: content.jumpUrl[patternStr]['prefix_icon'],
|
content.jumpUrl[patternStr]['prefix_icon'],
|
||||||
height: 19,
|
height: 19,
|
||||||
color: Theme.of(context).colorScheme.primary,
|
color: Theme.of(context).colorScheme.primary,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import 'package:PiliPalaX/grpc/app/main/community/reply/v1/reply.pb.dart';
|
|||||||
import 'package:PiliPalaX/http/video.dart';
|
import 'package:PiliPalaX/http/video.dart';
|
||||||
import 'package:PiliPalaX/pages/video/detail/reply/widgets/zan_grpc.dart';
|
import 'package:PiliPalaX/pages/video/detail/reply/widgets/zan_grpc.dart';
|
||||||
import 'package:PiliPalaX/utils/extension.dart';
|
import 'package:PiliPalaX/utils/extension.dart';
|
||||||
import 'package:cached_network_image/cached_network_image.dart';
|
|
||||||
import 'package:flutter/gestures.dart';
|
import 'package:flutter/gestures.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
@@ -944,8 +943,8 @@ class ReplyItemGrpc extends StatelessWidget {
|
|||||||
[
|
[
|
||||||
if (content.url[patternStr]?.hasPrefixIcon() == true) ...[
|
if (content.url[patternStr]?.hasPrefixIcon() == true) ...[
|
||||||
WidgetSpan(
|
WidgetSpan(
|
||||||
child: CachedNetworkImage(
|
child: Image.network(
|
||||||
imageUrl: content.url[patternStr]!.prefixIcon,
|
content.url[patternStr]!.prefixIcon,
|
||||||
height: 19,
|
height: 19,
|
||||||
color: Theme.of(context).colorScheme.primary,
|
color: Theme.of(context).colorScheme.primary,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user