nanoloaders

A lightweight Flutter plugin that provides a smooth loading experience for your app. Shows a beautiful loading screen while performing initial configuration and setup in the background.

Features

  • Customizable loading screen with remote image support
  • Background initialization and configuration checks
  • Smooth fade animations during loading
  • Automatic caching for faster subsequent launches
  • Debug mode for development

Getting Started

Wrap your app with NanoloadersGate to add a loading screen:

import 'package:flutter/material.dart';
import 'package:nanoloaders/nanoloaders.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(
    NanoloadersGate(
      config: const NanoloadersConfig(
        baseAddress: 'https://your-app.com',
        configKey: 'your-config-key',
        imagePath: '/images/splash.jpg',
      ),
      child: const MyApp(),
    ),
  );
}

Configuration

Parameter Description Default
baseAddress Base address for loading resources required
configKey Configuration key for the app required
imagePath Path to the loading image required
imageDownloadTimeoutSeconds Timeout for image download 10
debugMode Enable debug logging false

Platform Support

Platform Support
iOS Yes