createApp static method

void createApp(
  1. String title,
  2. Widget home
)

Implementation

static void createApp(String title, Widget home) {
  General.appName = title;

  WidgetsFlutterBinding.ensureInitialized();
  SharedPreferences.getInstance().then(
    // Put this into the general package
    (value) {
      Preferences.prefs = value;

      runApp(
        FedodoMain(
          title: title,
          home: home,
        ),
      );
    },
  );
}