Skip to content

Commit

Permalink
💄 Use embeddedImage instead of Positioned.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Feb 19, 2020
1 parent 347672b commit b7603bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 25 deletions.
Binary file added images/logo_1024_rounded.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 3 additions & 25 deletions lib/pages/user/user_qrcode_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,31 +113,9 @@ class _UserQrCodePageState extends State<UserQrCodePage> {
version: 3,
data: 'openjmu://user/${UserAPI.currentUser.uid}',
padding: EdgeInsets.zero,
foregroundColor: Theme.of(context).iconTheme.color,
),
Positioned.fill(
child: Center(
child: Container(
width: suSetSp(avatarSize),
height: suSetSp(avatarSize),
decoration: BoxDecoration(
color: Colors.white,
border: Border.all(color: Colors.white, width: 3.0),
borderRadius: BorderRadius.circular(10.0),
boxShadow: <BoxShadow>[
BoxShadow(
offset: Offset(0.0, 3.0),
blurRadius: 5.0,
color: Theme.of(context).iconTheme.color,
),
],
image: DecorationImage(
image: AssetImage('images/logo_1024.png'),
fit: BoxFit.fill,
),
),
),
),
backgroundColor: Colors.white,
foregroundColor: Colors.black,
embeddedImage: AssetImage('images/logo_1024_rounded.png'),
),
],
),
Expand Down

0 comments on commit b7603bf

Please sign in to comment.