getUnknownScreen static method

Widget? getUnknownScreen()

Implementation

static Widget? getUnknownScreen() {
  if (unknownScreen != null) return unknownScreen;
  return Scaffold(
    body: Center(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          Text(
            'The route you have found yourself at does not exist. So sorry :(',
          ),
          SizedBox(
            height: 10,
          ),
          FlickerElevatedButton(
            onPressed: () => currentRouteSingleton.navigateHome(),
            child: Text('Ok'),
          ),
        ],
      ),
    ),
  );
}