Skip to content

Commit

Permalink
feat: qr size with padding
Browse files Browse the repository at this point in the history
  • Loading branch information
sspzoa committed Dec 20, 2024
1 parent ecba825 commit 27400ac
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions lib/app/pages/home/widgets/qr_area.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ class QRArea extends StatelessWidget {

Future<void> loadSuperWhiteVideo() async {
ByteData bytes = await rootBundle.load('assets/videos/super white.mp4');
BetterPlayerDataSource videoSource = BetterPlayerDataSource.memory(bytes.buffer.asUint8List(), videoExtension: 'mp4');
BetterPlayerDataSource videoSource = BetterPlayerDataSource.memory(
bytes.buffer.asUint8List(),
videoExtension: 'mp4');
await videoController.setupDataSource(videoSource);
}

Expand All @@ -49,15 +51,16 @@ class QRArea extends StatelessWidget {
),
child: ClipRRect(
borderRadius: BorderRadius.circular(7),
child: Platform.isIOS ? BetterPlayer(controller: videoController) : Container(color: Colors.white),
child: Platform.isIOS
? BetterPlayer(controller: videoController)
: Container(color: Colors.white),
),
),
),
Positioned.fill(
child: Center(
child: SizedBox(
width: 180,
height: 180,
child: Padding(
padding: const EdgeInsets.all(16),
child: QrImageView.withQr(
qr: QrCode(
5,
Expand Down Expand Up @@ -112,7 +115,8 @@ class QRAreaLocked extends GetView<HomePageController> {
const SizedBox(height: 10),
Text(
'pin 또는 생체 인증 후 결제하기',
style: textTheme.token.copyWith(color: colorTheme.grayscale600),
style:
textTheme.token.copyWith(color: colorTheme.grayscale600),
),
],
),
Expand Down

0 comments on commit 27400ac

Please sign in to comment.