mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
feat: super chat
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -474,15 +474,13 @@ class UserInfoCard extends StatelessWidget {
|
||||
bool isLight,
|
||||
SpacePrInfo prInfo,
|
||||
) {
|
||||
final textColor = !isLight
|
||||
? Color(int.parse('FF${prInfo.textColorNight.substring(1)}', radix: 16))
|
||||
: Color(int.parse('FF${prInfo.textColor.substring(1)}', radix: 16));
|
||||
final textColor = Utils.parseColor(
|
||||
isLight ? prInfo.textColor : prInfo.textColorNight,
|
||||
);
|
||||
Widget child = Container(
|
||||
margin: const EdgeInsets.only(top: 8),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
|
||||
color: !isLight
|
||||
? Color(int.parse('FF${prInfo.bgColorNight.substring(1)}', radix: 16))
|
||||
: Color(int.parse('FF${prInfo.bgColor.substring(1)}', radix: 16)),
|
||||
color: Utils.parseColor(isLight ? prInfo.bgColor : prInfo.bgColorNight),
|
||||
child: Row(
|
||||
children: [
|
||||
if (!isLight && prInfo.iconNight?.isNotEmpty == true) ...[
|
||||
|
||||
Reference in New Issue
Block a user