createSplash function

void createSplash ()

Create splash screen for Android and iOS

Implementation

void createSplash() async {
  Map<String, dynamic> config = await _getConfig();

  String image = config['image'] ?? '';
  String color = config['color'].toString();
  bool fill = config['fill'] ?? false;
  bool androidDisableFullscreen = config['android_disable_fullscreen'] ?? false;

  if (!config.containsKey("android") || config['android']) {
    await android.createSplash(image, color, fill, androidDisableFullscreen);
  }

  if (!config.containsKey("ios") || config['ios']) {
    await ios.createSplash(image, color);
  }
}