fancy_states
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.
Installation
- 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';
Screenshot
Using
You need to use just the following code:
Default Type
FancyState(
state: States.internet
),
Internet State
FancyState(
state: States.internet
),
Data State
FancyState(
state: States.data
),
Search State
FancyState(
state: States.search
),
Server State
FancyState(
state: States.server
),
Customizable State
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),
),