Skip to content

Commit

Permalink
feat: basic flow ui implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanRns committed May 8, 2024
1 parent 99e9c0a commit 8fa9783
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 10 deletions.
3 changes: 2 additions & 1 deletion evently/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
"no" : "No",
"number_tickets": "Number of Tickets",
"network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain",
"maximum_1000": "1,000 maximum"
"maximum_1000": "1,000 maximum",
"publish": "Publish"
}
3 changes: 2 additions & 1 deletion evently/i18n/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
"no" : "No",
"number_tickets": "Number of Tickets",
"network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain",
"maximum_1000": "1,000 maximum"
"maximum_1000": "1,000 maximum",
"publish": "Publish"
}
3 changes: 2 additions & 1 deletion evently/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
"no" : "No",
"number_tickets": "Number of Tickets",
"network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain",
"maximum_1000": "1,000 maximum"
"maximum_1000": "1,000 maximum",
"publish": "Publish"
}
4 changes: 3 additions & 1 deletion evently/i18n/ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,7 @@
"yes": "Yes",
"no" : "No",
"number_tickets": "Number of Tickets",
"network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain"
"network_fee_listed_price_occur_on_chain": "A network fee of 10% the listed price is required for all transactions that occur on-chain",
"maximum_1000": "1,000 maximum",
"publish": "Publish"
}
1 change: 1 addition & 0 deletions evently/lib/generated/locale_keys.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ abstract class LocaleKeys {
static const number_tickets = 'number_tickets';
static const network_fee_listed_price_occur_on_chain = 'network_fee_listed_price_occur_on_chain';
static const maximum_1000 = 'maximum_1000';
static const publish = 'publish';

}
43 changes: 38 additions & 5 deletions evently/lib/screens/host_view_ticket_preview.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import 'package:easy_localization/easy_localization.dart';
import 'package:evently/generated/locale_keys.g.dart';
import 'package:evently/utils/constants.dart';
import 'package:evently/utils/evently_app_theme.dart';
import 'package:evently/utils/route_util.dart';
import 'package:evently/utils/space_utils.dart';
import 'package:flutter/cupertino.dart';
import 'package:evently/widgets/clipped_button.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';

Expand All @@ -21,13 +23,44 @@ class _HostTicketPreviewState extends State<HostTicketPreview> {
color: EventlyAppTheme.kWhite,
child: SafeArea(
child: Scaffold(
bottomNavigationBar: Container(
padding: EdgeInsets.symmetric(horizontal: 30.w),
height: 110.h,
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: [
ClippedButton(
title: LocaleKeys.publish.tr(),
bgColor: EventlyAppTheme.kBlue,
textColor: EventlyAppTheme.kWhite,
onPressed: () {
Navigator.of(context).pushReplacementNamed(RouteUtil.kRouteEventHub);
},
cuttingHeight: 15.h,
clipperType: ClipperType.bottomLeftTopRight,
isShadow: false,
fontWeight: FontWeight.w700,
),
VerticalSpace(10.h),
Center(
child: InkWell(
onTap: () {},
child: Text(
LocaleKeys.save_draft.tr(),
style: TextStyle(color: EventlyAppTheme.kLightGreyText, fontSize: 14.sp, fontWeight: FontWeight.w700),
),
),
),
VerticalSpace(5.h),
],
),
),
body: SingleChildScrollView(
child: ClipRRect(
borderRadius: BorderRadius.circular(10.r),
child: Container(
margin: EdgeInsets.symmetric(vertical: 20.w, horizontal: 20.w),
// height: 1.sh,
// width: 1.sw,
decoration: BoxDecoration(
image: const DecorationImage(image: AssetImage(PngUtils.kHostPreview), fit: BoxFit.fitHeight),
borderRadius: BorderRadius.circular(10.r),
Expand Down Expand Up @@ -201,7 +234,7 @@ class _HostTicketPreviewState extends State<HostTicketPreview> {
),
VerticalSpace(10.h),
Container(
decoration: BoxDecoration(color: EventlyAppTheme.kBlack),
decoration: const BoxDecoration(color: EventlyAppTheme.kBlack),
width: 338,
height: 338,
),
Expand Down
1 change: 0 additions & 1 deletion evently/lib/utils/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class PngUtils {
static const kIconDenomUsd = 'assets/images/denom_usd.png';
static const kIconDenomPylon = 'assets/images/denom_pylon.png';
static const kHostPreview = "assets/images/host_preview.png";

/// will remove this variable for ui dev
/// i need this variable to be used
static const kPhantom = "assets/images/phantom.png";
Expand Down

0 comments on commit 8fa9783

Please sign in to comment.