diff --git a/evently/lib/services/datasources/local_datasource.dart b/evently/lib/services/datasources/local_datasource.dart index 824c64bf07..07b8b19e5c 100644 --- a/evently/lib/services/datasources/local_datasource.dart +++ b/evently/lib/services/datasources/local_datasource.dart @@ -45,7 +45,7 @@ class LocalDataSourceImpl extends LocalDataSource { /// returns cookbookId @override Future autoGenerateCookbookId() async { - final String cookbookId = "Easel_CookBook_auto_cookbook_${getFullDateTime()}"; + final String cookbookId = "Evently_CookBook_auto_cookbook_${getFullDateTime()}"; await sharedPreferences.setString(kCookbookId, cookbookId); return cookbookId; } diff --git a/wallet/lib/pages/events/events_screen.dart b/wallet/lib/pages/events/events_screen.dart new file mode 100644 index 0000000000..b62aa5579a --- /dev/null +++ b/wallet/lib/pages/events/events_screen.dart @@ -0,0 +1,24 @@ +import 'package:flutter/material.dart'; + +import '../../model/event.dart'; + +class EventPassViewScreen extends StatefulWidget { + const EventPassViewScreen({super.key, required this.events}); + + final Events events; + + @override + State createState() => _EventPassViewScreenState(); +} + +class _EventPassViewScreenState extends State { + @override + Widget build(BuildContext context) { + return const Scaffold( + backgroundColor: Colors.black, + body: Column( + children: [], + ), + ); + } +} diff --git a/wallet/lib/utils/route_util.dart b/wallet/lib/utils/route_util.dart index 0f7ccf9cf2..e654a5de99 100644 --- a/wallet/lib/utils/route_util.dart +++ b/wallet/lib/utils/route_util.dart @@ -1,9 +1,11 @@ // ignore_for_file: cast_nullable_to_non_nullable import 'package:flutter/material.dart'; +import 'package:pylons_wallet/pages/events/events_screen.dart'; import 'package:pylons_wallet/pages/settings/screens/general_screen/general_screen.dart'; import 'package:pylons_wallet/pages/settings/screens/recovery_screen/recovery_screen.dart'; +import '../model/event.dart'; import '../model/nft.dart'; import '../model/transaction_failure_model.dart'; import '../pages/detailed_asset_view/owner_view.dart'; @@ -112,7 +114,14 @@ class RouteUtil { case Routes.transactionHistory: return createRoute(const TransactionHistoryScreen()); case Routes.eventView: - return createRoute(const Placeholder()); + if (settings.arguments != null && settings.arguments is NFT) { + return createRoute(EventPassViewScreen( + key: ValueKey(settings.arguments), + events: settings.arguments as Events, + )); + } + + return createRoute(const SizedBox()); } return null;