Pakete, Repositories und App-Kategorien suchen

GitHub-RepositoryYudizAndroidKishan/flutter_dino

flutter_dino

YudizAndroidKishan/flutter_dino open-source repository details.

Projektcover von flutter_dino
Sterne
1
Forks
0
Letzter Push (UTC)
26.11.2024
Projektstatus
Aktiv

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

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
YudizAndroidKishan GitHub avatar
SprachenDartC++CMakeRubySwiftCHTMLKotlinObjective-C

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 5 Einträge

Wie wähle ich ein passendes Repository?

Nach Anwendungsfall filtern, Aktivität vergleichen und vor der Nutzung das Originalprojekt prüfen.

  1. Nach Name, Autor oder Beschreibung suchen und nach Thema eingrenzen.
  2. Sterne, Forks und letzte Pushes vergleichen. Sterne zeigen Interesse, garantieren aber keine Qualität.
  3. Vor der Nutzung README, Lizenz und Issues auf GitHub prüfen.

Quellen und Pflege

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗