big_tip 0.1.0 big_tip: ^0.1.0 copied to clipboard
Display tips to your users using a custom icon and some text down below
import 'package:big_tip/big_tip.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: HomePage(),
);
}
}
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Big tip'),
),
body: BigTip(
icon: Icons.cake,
message: 'The cake is a lie',
messageStyle: TextStyle(
fontSize: 27,
fontStyle: FontStyle.italic,
),
),
);
}
}