sync_sphere

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

sync sphere

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 #

Add the sync_sphere package to your pubspec.yaml file:

dependencies:
sync_sphere: ^0.0.3
copied to clipboard

Run pub get

flutter pub get
copied to clipboard

import your package

import 'package:sync_sphere/sync_sphere.dart';
copied to clipboard

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(),
),
);
}
}
copied to clipboard

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(),
),
);
}
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.