mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-17 06:40:13 +08:00
opt borderRadius
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -7,9 +7,8 @@ class StyleString {
|
|||||||
static const BorderRadius mdRadius = BorderRadius.all(imgRadius);
|
static const BorderRadius mdRadius = BorderRadius.all(imgRadius);
|
||||||
static const Radius imgRadius = Radius.circular(10);
|
static const Radius imgRadius = Radius.circular(10);
|
||||||
static const double aspectRatio = 16 / 10;
|
static const double aspectRatio = 16 / 10;
|
||||||
static const bottomSheetRadius = BorderRadius.only(
|
static const bottomSheetRadius = BorderRadius.vertical(
|
||||||
topLeft: Radius.circular(18),
|
top: Radius.circular(18),
|
||||||
topRight: Radius.circular(18),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,7 @@ import 'package:flutter/material.dart';
|
|||||||
Widget videoProgressIndicator(double progress) => ClipRect(
|
Widget videoProgressIndicator(double progress) => ClipRect(
|
||||||
clipper: ProgressClipper(),
|
clipper: ProgressClipper(),
|
||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
borderRadius: const BorderRadius.only(
|
borderRadius: const BorderRadius.vertical(bottom: StyleString.imgRadius),
|
||||||
bottomLeft: StyleString.imgRadius,
|
|
||||||
bottomRight: StyleString.imgRadius,
|
|
||||||
),
|
|
||||||
child: LinearProgressIndicator(
|
child: LinearProgressIndicator(
|
||||||
minHeight: 10,
|
minHeight: 10,
|
||||||
value: progress,
|
value: progress,
|
||||||
|
|||||||
@@ -87,9 +87,8 @@ Widget livePanelSub(
|
|||||||
Colors.black45,
|
Colors.black45,
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: BorderRadius.vertical(
|
||||||
bottomLeft: StyleString.imgRadius,
|
bottom: StyleString.imgRadius,
|
||||||
bottomRight: StyleString.imgRadius,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|||||||
@@ -81,9 +81,8 @@ Widget liveRcmdPanel(
|
|||||||
Colors.black45,
|
Colors.black45,
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: BorderRadius.vertical(
|
||||||
bottomLeft: StyleString.imgRadius,
|
bottom: StyleString.imgRadius,
|
||||||
bottomRight: StyleString.imgRadius,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|||||||
@@ -86,9 +86,8 @@ Widget videoSeasonWidget(
|
|||||||
Colors.black54,
|
Colors.black54,
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: BorderRadius.vertical(
|
||||||
bottomLeft: StyleString.imgRadius,
|
bottom: StyleString.imgRadius,
|
||||||
bottomRight: StyleString.imgRadius,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: DefaultTextStyle.merge(
|
child: DefaultTextStyle.merge(
|
||||||
|
|||||||
@@ -56,10 +56,7 @@ class _ReplyPageState extends CommonRichTextPubPageState<LiveSendDmPanel> {
|
|||||||
child: Container(
|
child: Container(
|
||||||
constraints: const BoxConstraints(maxWidth: 640),
|
constraints: const BoxConstraints(maxWidth: 640),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: const BorderRadius.only(
|
borderRadius: const BorderRadius.vertical(top: Radius.circular(12)),
|
||||||
topLeft: Radius.circular(12),
|
|
||||||
topRight: Radius.circular(12),
|
|
||||||
),
|
|
||||||
color: theme.colorScheme.surface,
|
color: theme.colorScheme.surface,
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
|
|||||||
@@ -85,10 +85,7 @@ class _SuperChatCardState extends State<SuperChatCard> {
|
|||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: const BorderRadius.only(
|
borderRadius: const BorderRadius.vertical(top: Radius.circular(8)),
|
||||||
topLeft: Radius.circular(8),
|
|
||||||
topRight: Radius.circular(8),
|
|
||||||
),
|
|
||||||
color: Utils.parseColor(item.backgroundColor),
|
color: Utils.parseColor(item.backgroundColor),
|
||||||
border: Border(top: border, left: border, right: border),
|
border: Border(top: border, left: border, right: border),
|
||||||
),
|
),
|
||||||
@@ -137,9 +134,8 @@ class _SuperChatCardState extends State<SuperChatCard> {
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: const BorderRadius.only(
|
borderRadius: const BorderRadius.vertical(
|
||||||
bottomLeft: Radius.circular(8),
|
bottom: Radius.circular(8),
|
||||||
bottomRight: Radius.circular(8),
|
|
||||||
),
|
),
|
||||||
color: bottomColor,
|
color: bottomColor,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -754,10 +754,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
|||||||
),
|
),
|
||||||
height: 70 + padding.bottom,
|
height: 70 + padding.bottom,
|
||||||
decoration: const BoxDecoration(
|
decoration: const BoxDecoration(
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: BorderRadius.vertical(top: Radius.circular(20)),
|
||||||
topLeft: Radius.circular(20),
|
|
||||||
topRight: Radius.circular(20),
|
|
||||||
),
|
|
||||||
border: Border(top: BorderSide(color: Color(0x1AFFFFFF))),
|
border: Border(top: BorderSide(color: Color(0x1AFFFFFF))),
|
||||||
color: Color(0x1AFFFFFF),
|
color: Color(0x1AFFFFFF),
|
||||||
),
|
),
|
||||||
@@ -904,9 +901,8 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
|||||||
),
|
),
|
||||||
child: const DecoratedBox(
|
child: const DecoratedBox(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: BorderRadius.vertical(
|
||||||
topLeft: Radius.circular(20),
|
top: Radius.circular(20),
|
||||||
topRight: Radius.circular(20),
|
|
||||||
),
|
),
|
||||||
border: Border(
|
border: Border(
|
||||||
top: BorderSide(color: Colors.white38),
|
top: BorderSide(color: Colors.white38),
|
||||||
|
|||||||
@@ -81,10 +81,7 @@ class _ReplyPageState extends CommonRichTextPubPageState<ReplyPage> {
|
|||||||
child: Container(
|
child: Container(
|
||||||
constraints: const BoxConstraints(maxWidth: 640),
|
constraints: const BoxConstraints(maxWidth: 640),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: const BorderRadius.only(
|
borderRadius: const BorderRadius.vertical(top: Radius.circular(12)),
|
||||||
topLeft: Radius.circular(12),
|
|
||||||
topRight: Radius.circular(12),
|
|
||||||
),
|
|
||||||
color: themeData.colorScheme.surface,
|
color: themeData.colorScheme.surface,
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
|
|||||||
@@ -150,10 +150,7 @@ class _SendDanmakuPanelState extends CommonTextPubPageState<SendDanmakuPanel> {
|
|||||||
child: Container(
|
child: Container(
|
||||||
constraints: const BoxConstraints(maxWidth: 450),
|
constraints: const BoxConstraints(maxWidth: 450),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: const BorderRadius.only(
|
borderRadius: const BorderRadius.vertical(top: Radius.circular(12)),
|
||||||
topLeft: Radius.circular(12),
|
|
||||||
topRight: Radius.circular(12),
|
|
||||||
),
|
|
||||||
color: themeData.colorScheme.surface,
|
color: themeData.colorScheme.surface,
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
|
|||||||
@@ -233,10 +233,7 @@ class _WhisperDetailPageState
|
|||||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: theme.colorScheme.onInverseSurface,
|
color: theme.colorScheme.onInverseSurface,
|
||||||
borderRadius: const BorderRadius.only(
|
borderRadius: const BorderRadius.vertical(top: Radius.circular(16)),
|
||||||
topLeft: Radius.circular(16),
|
|
||||||
topRight: Radius.circular(16),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
|
|||||||
@@ -100,12 +100,19 @@ class ChatItem extends StatelessWidget {
|
|||||||
color: isOwner
|
color: isOwner
|
||||||
? theme.colorScheme.secondaryContainer
|
? theme.colorScheme.secondaryContainer
|
||||||
: theme.colorScheme.onInverseSurface,
|
: theme.colorScheme.onInverseSurface,
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: isOwner
|
||||||
topLeft: const Radius.circular(16),
|
? const BorderRadius.only(
|
||||||
topRight: const Radius.circular(16),
|
topLeft: Radius.circular(16),
|
||||||
bottomLeft: Radius.circular(isOwner ? 16 : 6),
|
topRight: Radius.circular(16),
|
||||||
bottomRight: Radius.circular(isOwner ? 6 : 16),
|
bottomLeft: Radius.circular(16),
|
||||||
),
|
bottomRight: Radius.circular(6),
|
||||||
|
)
|
||||||
|
: const BorderRadius.only(
|
||||||
|
topLeft: Radius.circular(16),
|
||||||
|
topRight: Radius.circular(16),
|
||||||
|
bottomLeft: Radius.circular(6),
|
||||||
|
bottomRight: Radius.circular(16),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
top: 8,
|
top: 8,
|
||||||
|
|||||||
Reference in New Issue
Block a user