addDefault method

  1. @override
void addDefault()
override

Adds a default widget to the stack based on platform.

Implementation

@override
void addDefault() {
  final pType = PlatformUtils.getPlatformType();

  // Choose the state based on platform
  if (pType == PlatformType.mobile) {
    push(const ReownAppKitModalMainWalletsPage(), renderScreen: true);
  } else if (pType == PlatformType.desktop || pType == PlatformType.web) {
    // add(const QRCodeAndWalletListPage());
    push(const ReownAppKitModalMainWalletsPage(), renderScreen: true);
    // TODO [WidgetStack] fix non mobile page
  }
}