Skip to content

Commit

Permalink
feat: publish button enable
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanAli13503 committed May 13, 2024
1 parent d18f6a0 commit 84ae254
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 9 deletions.
3 changes: 2 additions & 1 deletion evently/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@
"start": "Anfang",
"free_shirt": "1 free t-shirt",
"free_gift": "Free Gift",
"free_drink": "1 free drink"
"free_drink": "1 free drink",
"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 @@ -56,5 +56,6 @@
"start": "Start",
"free_shirt": "1 free t-shirt",
"free_gift": "Free Gift",
"free_drink": "1 free drink"
"free_drink": "1 free drink",
"publish" : "Publish"
}
3 changes: 2 additions & 1 deletion evently/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@
"start": "Comienzo",
"free_shirt": "1 free t-shirt",
"free_gift": "Free Gift",
"free_drink": "1 free drink"
"free_drink": "1 free drink",
"publish" : "Publish"
}
3 changes: 2 additions & 1 deletion evently/i18n/ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@
"start": "Начинать",
"free_shirt": "1 free t-shirt",
"free_gift": "Free Gift",
"free_drink": "1 free drink"
"free_drink": "1 free drink",
"publish" : "Publish"
}
2 changes: 2 additions & 0 deletions evently/lib/generated/locale_keys.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,7 @@ abstract class LocaleKeys {
static const open_pylons_app = 'open_pylons_app';
static const create_stripe_description = 'create_stripe_description';
static const start = 'start';
static const free_gift = 'free_gift';
static const free_drink = 'free_drink';

}
4 changes: 3 additions & 1 deletion evently/lib/screens/custom_widgets/bottom_buttons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,20 @@ class BottomButtons extends StatelessWidget {
required this.onPressContinue,
required this.onPressSaveDraft,
required this.isContinueEnable,
this.clipBtnTxt,
});

final VoidCallback onPressContinue;
final VoidCallback onPressSaveDraft;
final bool isContinueEnable;
final String? clipBtnTxt;

@override
Widget build(BuildContext context) {
return Column(
children: [
ClippedButton(
title: LocaleKeys.continue_key.tr(),
title: clipBtnTxt ?? LocaleKeys.continue_key.tr(),
bgColor: isContinueEnable ? EventlyAppTheme.kBlue : EventlyAppTheme.kGery03,
textColor: EventlyAppTheme.kWhite,
onPressed: () {
Expand Down
15 changes: 11 additions & 4 deletions evently/lib/screens/host_view_ticket_preview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,17 @@ class _HostTicketPreviewState extends State<HostTicketPreview> {
bottomNavigationBar: Container(
padding: EdgeInsets.symmetric(horizontal: 30.w),
height: 110.h,
child: BottomButtons(
onPressContinue: () {},
onPressSaveDraft: () {},
isContinueEnable: false,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
BottomButtons(
onPressContinue: () {},
onPressSaveDraft: () {},
isContinueEnable: true,
clipBtnTxt: LocaleKeys.publish.tr(),
),
],
),
),
body: SingleChildScrollView(
Expand Down

0 comments on commit 84ae254

Please sign in to comment.