Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
(fix/big_card) : Big loyalty card render problem (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
zohra051 authored Jul 28, 2020
1 parent 86bcb3f commit 0daf0aa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Loyalty Cards Page : Changed floating button icon
- Widget_item : Product designation overflow
- Share_one and Mainpage : Wishlist share process indicator visible on short process
- Card_page : Big loyalty card render problem

### Security

Expand Down
22 changes: 11 additions & 11 deletions lib/pages/card_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ class CardsState extends State<Cards> {
bottomLeft: Radius.circular(22),
bottomRight: Radius.circular(22))),
),
Padding(
padding: const EdgeInsets.only(top: 70.0, left: 32),
Positioned(
top: MediaQuery.of(context).size.width * 0.2,
left: MediaQuery.of(context).size.width * 0.1,
child: Container(
height: MediaQuery.of(context).size.height * 0.6,
width: MediaQuery.of(context).size.width * 0.5,
Expand All @@ -51,15 +52,13 @@ class CardsState extends State<Cards> {
),
),
Positioned(
top: MediaQuery.of(context).size.width * 0.6,
top: MediaQuery.of(context).size.width * 0.55,
child: Container(
height: MediaQuery.of(context).size.height * 0.1,
height: MediaQuery.of(context).size.height * 0.2,
width: MediaQuery.of(context).size.width * 0.8,
child: Transform(
child: BarcodeWidget(
style: TextStyle(fontSize: 20),
height: 100,
width: 350,
barcode: Barcode.ean13(),
data: args.cards["barecode"],
),
Expand All @@ -70,11 +69,11 @@ class CardsState extends State<Cards> {
),
),
Positioned(
top: MediaQuery.of(context).size.width * 0.7,
right: MediaQuery.of(context).size.width * 0.3,
right: MediaQuery.of(context).size.width * 0.23,
child: Transform(
child: Container(
width: MediaQuery.of(context).size.width * 0.4,
width: MediaQuery.of(context).size.width * 0.6,
height: MediaQuery.of(context).size.height * 0.85,
alignment: Alignment.center,
child: Text(
args.cards["label"],
Expand All @@ -86,8 +85,9 @@ class CardsState extends State<Cards> {
..rotateZ(91 * 3.1415927 / 180),
),
),
Padding(
padding: const EdgeInsets.only(left: 240, top: 10),
Positioned(
top: MediaQuery.of(context).size.width * 0.05,
left: MediaQuery.of(context).size.width * 0.6,
child: Container(
height: 25,
width: 25,
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/widget_loyaltyCards.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class LoyaltyCardsWidgetState extends State<LoyaltyCardsWidget> {
width: 180,
child: TextField(
inputFormatters: [
LengthLimitingTextInputFormatter(10),
LengthLimitingTextInputFormatter(25),
],
textAlign: TextAlign.center,
style: TextStyle(fontSize: 18),
Expand Down

0 comments on commit 0daf0aa

Please sign in to comment.