quotes_widget 0.0.2 quotes_widget: ^0.0.2 copied to clipboard
QuotesWidget is a package used to display a random quote enclosed by a neumorphic container.
import 'package:flutter/material.dart';
import 'package:quotes_widget/quotes_widget.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const Home());
}
}
class Home extends StatelessWidget {
const Home({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const Scaffold(
backgroundColor: Colors.blueAccent,
body: Center(
child: QuotesWidget(
width: 300,
height: 200,
quoteFontSize: 21,
authorFontSize: 18,
),
),
);
}
}