daily_inspiration_quotes 0.0.2 copy "daily_inspiration_quotes: ^0.0.2" to clipboard
daily_inspiration_quotes: ^0.0.2 copied to clipboard

Integrate inspiration quotes in your application in the form of Dialog or Progress Indicator

Daily Inspiration Quotes #

Inspiration quotes are desirable for many tutorial, educational or practicing applications that require motivated users.

Plugin provides QuoteDialogButton and QuoteLoadingScreen widgets that provide 1643 different inspiration quotes which are beeing randomly displayed to the user without repetition.

QuoteDialogButton on pressed triggers the ShowDialog function after which the application displays random quote together with its author. QuoteLoadingScreen could be used in the LoadingState of the application. Together with set of quotes application displays a ProgressIndicator.

Dialogs and button are customizable, developer is able to set the background and text colors, as well as the desirable Icon for the button.

Demo #

Demo

How to use? #

  • Add the following dependency to pubspec.yaml of your project:
dependencies:
  daily_inspiration_quotes: ^0.0.1
  • Import daily_inspiration_quotes.dart to your code.
  import 'package:daily_inspiration_quotes/daily_inspiration_quotes.dart';

QuoteDialogButton

Anywhere in the code you can simply call the function QuoteDialogButton and optionally specify following parameters:

  • canvasColor,
  • textColor,
  • buttonIcon,
  • buttonColor
  • fontFamily
  • fontWeight
  • and fontStyle

QuoteLoadingScreen

Whenewer you have to wait for an asynchronous action to complete and some LoadingState displayed to user, instead of just showing ProgressIndicator one can return QuoteLoadingScreen and optionally specify canvasColor and textColor of type Color and Font parameters.

Example Code:

  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Users List"),
      ),
      floatingActionButton: QuoteDialogButton(
        canvasColor: Colors.amber.shade200,
        textColor: Colors.black45,
        buttonIcon: Icons.lightbulb_circle_rounded,
        buttonColor: Colors.amber,
      ),
      body: buildBloc(),
    );
  }

Licence #

MIT Licence

Author #

Nikola Novarlic

1
likes
130
pub points
0%
popularity

Publisher

unverified uploader

Integrate inspiration quotes in your application in the form of Dialog or Progress Indicator

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, http, plugin_platform_interface

More

Packages that depend on daily_inspiration_quotes