Search packages, repositories and app categories

Package detailsv1.0.1+3

flutter_dino

Flutter package for seamless internet connectivity handling with custom widgets.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
5
Likes
13
Pub points
140

Install package

flutter pub add flutter_dino

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Flutter Dino is a Flutter package designed to simplify internet connectivity management across multiple platforms. It provides customizable widgets that visually represent network status, enabling developers to build responsive UIs that adapt to online or offline states. With support for Android, iOS, Web, macOS, Windows, and Linux, it ensures consistent connectivity handling regardless of the target platform. The package integrates seamlessly into existing projects using a simple pub add command. It's ideal for apps requiring real-time network awareness and user feedback.

Use cases

  • Real-time network status monitoring
  • Offline mode UI with custom indicators
  • Seamless app behavior during connectivity changes
  • Cross-platform connectivity solutions
  • Enhancing UX with visual network feedback
  • Dynamic content loading based on connection state

Key features

  • Customizable connectivity status widgets
  • Support for six major platforms
  • Easy integration via pub add
  • Real-time connectivity updates
  • Lightweight and performant
  • Configurable timeout and retry settings

Suitable for

  • Apps needing robust network handling
  • Developers building cross-platform apps
  • UX-focused applications
  • Projects requiring offline-first design
  • Teams prioritizing developer experience

Considerations

  • Requires proper permission handling on mobile platforms
  • May need additional styling for complex UIs
  • Depends on platform-specific network APIs
  • Not suitable for high-frequency network polling
  • Limited to basic connectivity checks (no bandwidth analysis)

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Flutter Dino

pub package

package publisher

GitHub code size

Flutter Dino is a Flutter package that provides seamless internet connectivity handling in your Flutter applications. It allows you to easily manage and customize your app's behavior when internet connectivity changes.

Features

  • Easy Integration: Simple initialization process with minimal configuration
  • Customizable: Full control over how your app handles connectivity changes
  • Global Access: Works across your entire application
  • Custom UI Support: Ability to show custom widgets when internet is unavailable
  • Automatic Handling: Manages connectivity state changes without manual intervention

Installation

Add the following line to your pubspec.yaml file under dependencies:

dependencies:
  flutter_dino: latest_version

Then run:

flutter pub get

Usage

To use Flutter Dino in your Flutter application:

Import the Package
import 'package:flutter_dino/flutter_dino.dart';
Basic Implementation

Here's a simple example of how to integrate Flutter Dino in your app:

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

void main() async {
  final navigatorKey = GlobalKey<NavigatorState>();
  
  WidgetsFlutterBinding.ensureInitialized();
  
  await FlutterDino.initialize(
    config: FlutterDinoConfig(
      navigatorKey: navigatorKey,
    ),
  );
  
  runApp(
    MaterialApp(
      navigatorKey: navigatorKey,
      home: HomePage(),
      navigatorObservers: [
        FlutterDino.instance.navigatorObserver,
      ],
    ),
  );
}
Customization Options

You can customize Flutter Dino's behavior using FlutterDinoConfig:

FlutterDinoConfig(
  navigatorKey: navigatorKey,
  showNoInternetDialog: true,  // Control automatic handling
  noInternetReplacement: YourCustomWidget(),  // Custom UI when offline
)

Demo

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributors

All Contributors

YudizAndroidKishan
YudizAndroidKishan

🚇 ⚠️ 💻

Contributions

Contributions are welcome! Please open an issue or submit a pull request on the GitHub repository if you would like to contribute to Flutter Dino.

Support

If you encounter any issues or have questions, feel free to open an issue on GitHub.

Visitors Count

Loading

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.