quotes_widget 0.0.2 copy "quotes_widget: ^0.0.2" to clipboard
quotes_widget: ^0.0.2 copied to clipboard

QuotesWidget is a package used to display a random quote enclosed by a neumorphic container.

example/lib/main.dart

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,
        ),
      ),
    );
  }
}
1
likes
140
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

QuotesWidget is a package used to display a random quote enclosed by a neumorphic container.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, glass_kit

More

Packages that depend on quotes_widget