0 purchases
random quote gen
Random Quote Generator #
A simple Flutter package that displays a random quote or joke in your app.
Usage #
To use this package, add random_quote_gen as a dependency in your pubspec.yaml file. For example:
dependencies:
random_quote_gen: ^1.0.0
copied to clipboard
Then, import the package in your Dart code:
import 'package:random_quote_gen/random_quote_gen.dart';
copied to clipboard
To display a random quote or joke, you can use the RandomQuote widget:
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return RandomQuote();
}
}
copied to clipboard
By default, the RandomQuote widget displays a random quote from a predefined list. If you want to display a random joke instead, you can pass the joke: true parameter:
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return RandomQuote(joke: true);
}
}
copied to clipboard
Contributing #
This package is open source and contributions are welcome! If you find a bug or have a feature request, please file an issue. If you want to contribute code, please fork the repository and submit a pull request.
License #
This package is licensed under the MIT License.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.