Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

Flutter connection status bar, widget that animates when internet connection changes

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),
),
),
```