Skip to content

Commit

Permalink
feat: dotted line
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanRns committed May 8, 2024
1 parent bfd49f9 commit c6d51c6
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 4 deletions.
Binary file added evently/assets/images/dotted_line.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions evently/assets/images/svg/diamond.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 42 additions & 3 deletions evently/lib/screens/host_view_ticket_preview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_svg/flutter_svg.dart';

class HostTicketPreview extends StatefulWidget {
const HostTicketPreview({super.key});
Expand Down Expand Up @@ -100,6 +101,7 @@ class _HostTicketPreviewState extends State<HostTicketPreview> {
padding: EdgeInsets.only(left: 10.w, right: 30.h),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
Expand Down Expand Up @@ -148,11 +150,48 @@ class _HostTicketPreviewState extends State<HostTicketPreview> {
],
),
),


Padding(
padding: EdgeInsets.only(left: 10.w, right: 30.h),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.start,
children: [
Text(
'PERKS',
style: TextStyle(fontSize: 11.sp, fontWeight: FontWeight.w400, color: EventlyAppTheme.kWhite),
),
SizedBox(height: 1.h),
Row(
children: [
SvgPicture.asset(SVGUtils.kDiamond),
SizedBox(width: 5.w),
Text(
'x 3',
style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kWhite, fontWeight: FontWeight.bold),
),
SizedBox(width: 5.w),
Text(
'Redeem',
style: TextStyle(fontSize: 15.sp, color: EventlyAppTheme.kDarkGreen, fontWeight: FontWeight.bold),
)
],
)
],
),
],
),
),
VerticalSpace(13.h),
Image.asset(PngUtils.kDottedLine)
],
),
)
),


],
),
),
Expand Down
2 changes: 2 additions & 0 deletions evently/lib/utils/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class SVGUtils {
static const kGift = "assets/images/svg/gift.svg";
static const kDrinks = "assets/images/svg/drinks.svg";
static const kMinus = "assets/images/svg/minus.svg";
static const kDiamond = "assets/images/svg/diamond.svg";
}

/// ```PNG assets
Expand All @@ -49,4 +50,5 @@ class PngUtils {
/// will remove this variable for ui dev
/// i need this variable to be used
static const kPhantom = "assets/images/phantom.png";
static const kDottedLine = "assets/images/dotted_line.png";
}
2 changes: 1 addition & 1 deletion evently/lib/utils/evently_app_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class EventlyAppTheme {
static const Color kPurple02 = Color(0xFF4534CE);
static const Color kPurple03 = Color(0xFFCBC8F3);
static const Color kLightPurple = Color(0xFFB6B6E8);
static const Color kDarkGreen = Color(0xFF3A8977);
static const Color kDarkGreen = Color(0xFF14FB00);
static const Color kYellow = Color(0xFFF3BA2F);
static const Color kLightYellow = Color(0xFFFED564);
static const Color kLightRed = Color(0xFFEF4421);
Expand Down

0 comments on commit c6d51c6

Please sign in to comment.