network status bar
create network status bar check your device is online/offline with simple slide animation.
getting started
this project is a starting point for a dart
package,
a library module containing code that can be shared easily across
multiple flutter or dart projects.
for help getting started with flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full api reference.
installing
dependencies:
network_status_bar: ^0.1.6
import
import 'package:network_status_bar/network_status_bar.dart';
usage
import 'package:flutter/material.dart';
import 'package:network_status_bar/network_status_bar.dart';
class onlineoffinepage extends statelesswidget {
onlineoffinepage({
key key,
}) : super(key: key);
@override
widget build(buildcontext context) {
return scaffold(
appbar: appbar(
title: text(
'network status bar',
),
),
body: networkstatusbar(
child: container(
height: 300,
color: colors.yellow,
),
),
);
}
}
�� screenshots
Comments are closed.