Skip to content

Commit

Permalink
微信支付二维码背景设置为白色
Browse files Browse the repository at this point in the history
  • Loading branch information
mylxsw committed Apr 11, 2024
1 parent 654bcbe commit d6b6f90
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions lib/page/balance/payment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import 'package:askaide/repo/api_server.dart';
import 'package:askaide/repo/settings_repo.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_localization/flutter_localization.dart';
import 'package:flutter_stripe/flutter_stripe.dart';
Expand Down Expand Up @@ -739,10 +740,14 @@ class _PaymentScreenState extends State<PaymentScreen> {
margin: const EdgeInsets.only(top: 20),
child: Column(
children: [
QrImageView(
data: created.codeUrl!,
version: QrVersions.auto,
size: 200,
ClipRRect(
borderRadius: BorderRadius.circular(8),
child: QrImageView(
data: created.codeUrl!,
version: QrVersions.auto,
size: 200,
backgroundColor: Colors.white,
),
),
const SizedBox(height: 10),
const Text(
Expand Down
2 changes: 1 addition & 1 deletion lib/page/chat/home_chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ class _HomeChatPageState extends State<HomeChatPage> {
chatPreviewController.setAllMessageIds(messages);

return ChatPreview(
padding: enableInput.value ? null : const EdgeInsets.only(bottom: 30),
padding: enableInput.value ? null : const EdgeInsets.only(bottom: 35),
messages: messages,
scrollController: scrollController,
controller: chatPreviewController,
Expand Down
2 changes: 1 addition & 1 deletion lib/page/chat/room_chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ class _RoomChatPageState extends State<RoomChatPage> {

return ChatPreview(
padding:
_inputEnabled.value ? null : const EdgeInsets.only(bottom: 30),
_inputEnabled.value ? null : const EdgeInsets.only(bottom: 35),
messages: messages,
scrollController: _scrollController,
controller: _chatPreviewController,
Expand Down

0 comments on commit d6b6f90

Please sign in to comment.