dart_quote 0.0.2 dart_quote: ^0.0.2 copied to clipboard
Creates quote widget or string
import 'package:flutter/material.dart';
import 'package:dart_quote/widget_quote.dart';
import 'package:dart_quote/string_quote.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Scaffold(
appBar: AppBar(
title: const Text('Quote Demo'),
),
body: const MyHomePage(),
),
);
}
}
class MyHomePage extends StatelessWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(32.0),
child: Center(
child: Container(
child: StringQuote(
text: 'This is the sample text including Quotes.',
).quote()),
),
);
}
}