Skip to content

Commit

Permalink
[qrcode] no ModalImageViewer
Browse files Browse the repository at this point in the history
  • Loading branch information
liplum committed Sep 23, 2024
1 parent d7e63bc commit 5bacd17
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lib/intent/qrcode/page/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,19 @@ class _QrCodePageState extends ConsumerState<QrCodePage> {
Widget buildQrCode(String data) {
return LayoutBuilder(builder: (ctx, box) {
final side = min(box.maxWidth, widget.maxSize ?? double.infinity);
return ModalImageViewer(
child: PlainQrCodeView(
key: $qrcodeK,
data: data,
size: side,
).center(),
);
return PlainQrCodeView(
key: $qrcodeK,
data: data,
size: side,
).center();
});
}

Widget buildUrl(String data) {
return [
ListTile(
title: "Text length: ${data.length}".text(),
trailing: PlatformIconButton(
trailing: IconButton.filledTonal(
icon: Icon(context.icons.copy),
onPressed: () async {
context.showSnackBar(content: "Copied".text());
Expand Down

0 comments on commit 5bacd17

Please sign in to comment.