diff --git a/evently/i18n/de.json b/evently/i18n/de.json index ab097c5b84..0bfaed5329 100644 --- a/evently/i18n/de.json +++ b/evently/i18n/de.json @@ -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" } \ No newline at end of file diff --git a/evently/i18n/en-US.json b/evently/i18n/en-US.json index ab097c5b84..0bfaed5329 100644 --- a/evently/i18n/en-US.json +++ b/evently/i18n/en-US.json @@ -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" } \ No newline at end of file diff --git a/evently/i18n/es.json b/evently/i18n/es.json index ab097c5b84..0bfaed5329 100644 --- a/evently/i18n/es.json +++ b/evently/i18n/es.json @@ -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" } \ No newline at end of file diff --git a/evently/i18n/ru-RU.json b/evently/i18n/ru-RU.json index dfa99e77e0..0bfaed5329 100644 --- a/evently/i18n/ru-RU.json +++ b/evently/i18n/ru-RU.json @@ -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" } \ No newline at end of file diff --git a/evently/lib/generated/locale_keys.g.dart b/evently/lib/generated/locale_keys.g.dart index 021910113a..76941d2da7 100644 --- a/evently/lib/generated/locale_keys.g.dart +++ b/evently/lib/generated/locale_keys.g.dart @@ -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'; } diff --git a/evently/lib/screens/host_view_ticket_preview.dart b/evently/lib/screens/host_view_ticket_preview.dart index de2430bf61..75178cb432 100644 --- a/evently/lib/screens/host_view_ticket_preview.dart +++ b/evently/lib/screens/host_view_ticket_preview.dart @@ -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'; @@ -21,13 +23,44 @@ class _HostTicketPreviewState extends State { 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), @@ -201,7 +234,7 @@ class _HostTicketPreviewState extends State { ), VerticalSpace(10.h), Container( - decoration: BoxDecoration(color: EventlyAppTheme.kBlack), + decoration: const BoxDecoration(color: EventlyAppTheme.kBlack), width: 338, height: 338, ), diff --git a/evently/lib/utils/constants.dart b/evently/lib/utils/constants.dart index a28399f439..a0cc943487 100644 --- a/evently/lib/utils/constants.dart +++ b/evently/lib/utils/constants.dart @@ -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";