speech_bubble 0.0.4
speech_bubble: ^0.0.4 copied to clipboard
A widget that emulates a speech bubble in flutter.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:speech_bubble/speech_bubble.dart';
void main() => runApp(new MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => new _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return new MaterialApp(
home: new Scaffold(
appBar: new AppBar(
title: const Text('Plugin example app'),
),
body: new Center(
child: new SpeechBubble(
nipLocation: NipLocation.BOTTOM,
// child: Column(
// mainAxisSize: MainAxisSize.min,
// children: <Widget>[
// Text("Give your users some guided instruction"),
// Text("From the inside of a Speech Bubble")
// ],
// ),
child: Row(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Icon(
Icons.favorite,
color: Colors.white,
),
Padding(
padding: const EdgeInsets.all(4.0),
),
Text(
"1",
style: TextStyle(
color: Colors.white,
fontSize: 18.0,
),
),
],
),
),
),
),
);
}
}