openCreatorEnhancementsEditor method
A helper function for opening the creator from any page in the application for editing enhancements.
Implementation
Future<void> openCreatorEnhancementsEditor() async {
List<String> decks = await getDecks();
await Navigator.push(
_navigatorKey.currentContext!,
PageRouteBuilder(
pageBuilder: (context, animation1, animation2) => CreatorPage(
decks: decks,
editEnhancements: true,
editFields: false,
killOnPop: false,
subtitles: null,
),
transitionDuration: Duration.zero,
reverseTransitionDuration: Duration.zero,
),
);
}