flutter_faq

Creator: coderz1093

Last updated:

Add to Cart

Description:

flutter faq

Flutter FAQs [Frequently Asked Question] #
This plugin helps you to display FAQs in your Flutter projects as a custom widget.
Table of contents #

Features
Installation
Usages
Support and feedback

Features #
You can:

use this for showing FAQs.
add textstyle for both questions and answers.
give your icons on expnding and collasped.
give padding to answers.
show divider or not or your own widget as a separator.

Installation #
Add package to the the pubspec.yaml.
flutter_faq:
copied to clipboard
Usages #
Import the package.
import 'package:flutter_faq/flutter_faq.dart';
copied to clipboard
Add FAQ widget to the widget tree
FAQ(question: "Question 1", answer: "data"),
copied to clipboard
For Styling Questions and Answers
FAQ(
question: "Question",
answer: "data",
ansStyle: const TextStyle(color: Colors.blue, fontSize: 15),
queStyle: const TextStyle(color: Colors.green, fontSize: 35),
),
copied to clipboard
For giving color and borderRadius
FAQ(
question: "Question",
answer: data,
ansDecoration: BoxDecoration(
color: Colors.grey[550],
borderRadius: const BorderRadius.all(Radius.circular(20))),
queDecoration: BoxDecoration(
color: Colors.grey[500],
borderRadius: const BorderRadius.all(Radius.circular(20))),
),
copied to clipboard
For giving padding in answer
FAQ(
question: "Question",
answer: "data",
ansPadding: const EdgeInsets.all(50),
),
copied to clipboard
For giving custom divider
FAQ(
question: "Question",
answer: "data",
separator: Container(
height: 5,
width: double.infinity,
color: Colors.purple,
),
),
copied to clipboard
For giving custom expanded and collapsed icon
FAQ(
question: "Question",
answer: "data",
expandedIcon: const Icon(Icons.minimize),
collapsedIcon: const Icon(Icons.add),
),
copied to clipboard
For no showing divider
FAQ(
question: "Question",
answer: "data",
separator:false
),
copied to clipboard
Support and feedback #
If I miss to add some feature, feel free to open a ticket or contribute!
You can reach me here:
LinkedIn |
GitHub |
Medium |
Google DevLibrary

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.