feat: poin page
This commit is contained in:
@@ -7,13 +7,11 @@ import '../../poin_page.dart';
|
||||
@RoutePage()
|
||||
class ProductRedeemPage extends StatefulWidget {
|
||||
final Product product;
|
||||
final Merchant merchant;
|
||||
final PointCard pointCard;
|
||||
|
||||
const ProductRedeemPage({
|
||||
super.key,
|
||||
required this.product,
|
||||
required this.merchant,
|
||||
required this.pointCard,
|
||||
});
|
||||
|
||||
@@ -171,31 +169,6 @@ class _ProductRedeemPageState extends State<ProductRedeemPage>
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// Merchant Info
|
||||
Container(
|
||||
padding: EdgeInsets.symmetric(horizontal: 12, vertical: 8),
|
||||
decoration: BoxDecoration(
|
||||
color: AppColor.primary.withOpacity(0.1),
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Text(widget.merchant.logo, style: TextStyle(fontSize: 16)),
|
||||
SizedBox(width: 6),
|
||||
Text(
|
||||
widget.merchant.name,
|
||||
style: AppStyle.sm.copyWith(
|
||||
color: AppColor.primary,
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
SizedBox(height: 16),
|
||||
|
||||
// Product Name & Popular Badge
|
||||
Row(
|
||||
children: [
|
||||
@@ -591,13 +564,6 @@ class _ProductRedeemPageState extends State<ProductRedeemPage>
|
||||
),
|
||||
),
|
||||
SizedBox(height: 12),
|
||||
Text(
|
||||
"Show this code at ${widget.merchant.name}",
|
||||
style: AppStyle.sm.copyWith(
|
||||
color: AppColor.textSecondary,
|
||||
),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user