big_tip 1.1.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 90

Big Tip #

Package License Patreon Stars

Display information to the user using a custom layout, that can be actionable.

This package aims to provide you a simple way to communicate information to the user, using custom views and a texts message. You can also customize colors, sizes and text style.

It displays a custom widget, usually a Icon widget, followed by a title and a subtitle text. If the child widget provided is in fact an Icon, a default icon theme will be applied, setting its size to 100, and using the caption text style's color to fill it.

There's also an optional action parameter, which provides the ability to call functions via a customizable button.

Example #

If you want to take a deeper look at the example, take a look at the example folder provided with the project.

  child: Icon(Icons.cake),
  title: Text('The cake is a lie'),
  subtitle: Text('Is this a Portal reference?'),

You can also provide the user with the ability to interact with the view, via a FlatButton widget. To do that, you can make use of the action and actionCallback parameters of the widget. By default, this widget will be placed at the bottom of the view.

  child: Icon(Icons.cake),
  title: Text('The cake is a lie'),
  subtitle: Text('Is this a Portal reference?'),
  action: Text('CALL GABEN'),
  actionCallback: () => print('Ding dong'),

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.

Built with #

Authors #

License #

This project is licensed under the GNU GPL v3 License - see the LICENSE file for details.

[1.1.1] - May 11th, 2020 #

  • Make title and subtitle default text alignment to center

[1.1.0] - April 3rd, 2020 #

  • A copuple and neccesary modifications have been made to the package, and unfortunatelly some breaking changes have been introduced.
  • BREAKING CHANGE: Changed title, subtitle and action to be Widgetparameters, insteead of String. This will allow a more customized used of this package.
  • BREAKING CHANGE: Deleted all style parameters. If you want to apply style, you could simply apply it directly to the widget itself.
  • Added subtitleSpace parameter, to regulate the division between the title and subtitle widgets.
  • Added a bunch of tests.
  • Fixed quite a few bugs.
  • Added GitHub Actions CI.
  • Updated minium Flutter SDK to v1.10.

[1.0.0] - January 24th, 2020 #

  • Now this package is consider STABLE: no more breaking changes expected.
  • BREAKING CHANGE: Deleted the icon parameter in favor of a more generic child parameter: now you can use other kind of widgets. As such, other parameters like iconSize and iconColor have been deleted.
  • BREAKING CHANGE: Deleted the message parameter. Now you have the ability to add two label fields: a title and a subtitle, each with its own style parameter.
  • Added the ability to add a button at the bottom of the view, for the user to perform some kind of action, established on the actionCallback parameter.
  • The view now applies a custom icon theme via IconTheme, if the developer uses a Icon widget as the child widget. This theme is similiar to the one used previously.
  • Space between the child widget and the title text has been lowered to 22.

[0.1.0] - December 5th, 2019 #

  • First release!


import 'package:big_tip/big_tip.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'big_tip',
      theme: ThemeData(
      home: HomePage(),

class HomePage extends StatelessWidget {
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Big tip'),
      body: BigTip(
        child: Icon(Icons.cake),
        title: Text('The cake is a lie'),
        subtitle: Text('Is this a Portal reference?'),
        action: Text('CALL GABEN'),
        actionCallback: () => print('Ding dong'),

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  big_tip: ^1.1.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:big_tip/big_tip.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jun 4, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.2
  • pana: 0.13.8-dev
  • Flutter: 1.17.1


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.2 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies