Last updated:
0 purchases
fancy states
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>
copied to clipboard
Install it
You can install it from the command line:
$ flutter pub get
copied to clipboard
Import it
Now in Dart code, you can use:
import 'package:fancy_states/fancy_states.dart';
copied to clipboard
Screenshot #
Using #
You need to use just the following code:
Default Type #
FancyState(
state: States.internet
),
copied to clipboard
Internet State #
FancyState(
state: States.internet
),
copied to clipboard
Data State #
FancyState(
state: States.data
),
copied to clipboard
Search State #
FancyState(
state: States.search
),
copied to clipboard
Server State #
FancyState(
state: States.server
),
copied to clipboard
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),
),
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.