Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thisisamir98/connection_status_bar
Flutter connection status bar, widget that animates when internet connection changes
https://github.com/thisisamir98/connection_status_bar
dart fluttter
Last synced: 3 months ago
JSON representation
Flutter connection status bar, widget that animates when internet connection changes
- Host: GitHub
- URL: https://github.com/thisisamir98/connection_status_bar
- Owner: thisisamir98
- License: mit
- Created: 2019-09-15T07:15:29.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-04T09:14:57.000Z (over 3 years ago)
- Last Synced: 2024-06-21T10:35:15.710Z (5 months ago)
- Topics: dart, fluttter
- Language: Dart
- Homepage: https://pub.dev/packages/connection_status_bar
- Size: 449 KB
- Stars: 113
- Watchers: 1
- Forks: 18
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# connection_status_bar
A widget that animates when internet connection changes
![](demo.gif)
## Getting Started
add it to your dependencies then use it anywhere on your app, usually in a widget that is on top of all of your widgets.
```dart
ConnectionStatusBar(
height : 25, // double: default height
width : double.maxFinite, // double: default width
color : Colors.redAccent, // Color: default background color
lookUpAddress : 'google.com', // String: default site to look up for checking internet connection
endOffset : const Offset(0.0, 0.0), // Offset: default animation finish point offset
beginOffset : const Offset(0.0, -1.0), // Offset: default animation start point offset
animationDuration : const Duration(milliseconds: 200), // Duration: default animation duration
// Text: default text
title : const Text(
'Please check your internet connection',
style: TextStyle(color: Colors.white, fontSize: 14),
),
),
```