Fancy States is a flutter widget library, include different error states which are fully customizable and can be extended on request. No more extra hassle for all the extra working around with different states.
- Add this to your packages pubspec.yaml file:
dependencies:
fancy_states: <latest version>
- Install it You can install it from the command line:
$ flutter pub get
- Import it Now in Dart code, you can use:
import 'package:fancy_states/fancy_states.dart';
You need to use just the following code:
FancyState(
state: States.internet
),
FancyState(
state: States.internet
),
FancyState(
state: States.data
),
FancyState(
state: States.search
),
FancyState(
state: States.server
),
FancyState(
state: States.internet,
image:"path_to_image",
title:"Your Title",
description:"Your Description",
imageHeight:100,
titleStyle: const TextStyle(fontFamily: 'Futura',fontSize: 16,fontWeight: FontWeight.w600,color: Colors.black),
descriptionStyle: const TextStyle(fontFamily: 'Futura',fontSize: 12,fontWeight: FontWeight.w300,color: Color(0xFF8F8E8E),
),