Search packages, repositories and app categories

Package detailsv0.0.3

sync_sphere

The sync_sphere package is designed to check internet connectivity throughout the app or just on a particular location in an easy way. Just wrap the widget you want to listen to internet connectivity and leave the rest to us.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
19
Likes
4
Pub points
110

Install package

flutter pub add sync_sphere

Package Overview

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

sync_sphere is a Flutter package that simplifies internet connectivity checks across your app or specific widgets. It allows developers to wrap any widget with a connectivity listener, automatically updating based on network status changes. The package provides real-time updates and minimal boilerplate, making it easy to handle online/offline states. It supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux, ensuring consistent behavior across environments.

Use cases

  • Monitoring connectivity in specific UI sections
  • Displaying offline indicators
  • Conditional rendering based on network status
  • Auto-retry logic for failed API calls
  • Graceful degradation when offline
  • Real-time connectivity feedback

Key features

  • Simple widget wrapping for connectivity monitoring
  • Real-time network status updates
  • Cross-platform support
  • Minimal setup and configuration
  • Built-in state management for online/offline states
  • Lightweight and efficient

Suitable for

  • Apps requiring reliable network awareness
  • Developers seeking quick connectivity integration
  • Projects targeting multiple platforms
  • UIs needing dynamic online/offline behavior
  • Teams prioritizing developer experience

Considerations

  • Requires internet permission on mobile platforms
  • May trigger frequent rebuilds if used excessively
  • Does not handle complex network conditions like slow connections
  • No built-in retry mechanisms beyond connectivity state
  • Limited customization for advanced network diagnostics

Original README

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

sync_sphere

A Flutter package for constant internet connectivity checking throughout the app.

Features

  • Monitors internet connectivity.
  • Displays a user-friendly screen when there is no internet connection.
  • Customizable options for the internet connectivity screen.

Getting Started

  1. Add the sync_sphere package to your pubspec.yaml file:
dependencies:
  sync_sphere: ^0.0.3
  1. Run pub get
flutter pub get
  1. import your package
import 'package:sync_sphere/sync_sphere.dart';
  1. Wrap child of your MaterialApp with the SyncSphere widget
void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: SyncSphere(
        child: YourMainScreen(),
        whenOffine: YourOfflineScreenWidget(),
      ),
    );
  }
}
  1. You can also use the default "No internet" widget
void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: SyncSphere(
        child: YourMainScreen(),
      ),
    );
  }
}

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.