Search packages, repositories and app categories

inquiry cover
Package detailsv0.0.6

inquiry

The Inquiry package for Flutter simplifies creating custom questionnaires with trackable user data. Makes easily store the collected data locally or remotely.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
14
Likes
11
Pub points
140

Install package

flutter pub add inquiry

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The Inquiry package for Flutter streamlines the creation of custom questionnaires, enabling developers to collect and track user responses efficiently. It supports storing data locally or remotely, making it ideal for surveys, feedback forms, and user onboarding flows. With a simple API, it integrates seamlessly into Flutter apps across multiple platforms, ensuring consistent behavior from mobile to desktop. The package is designed for ease of use while maintaining flexibility for customization.

Use cases

  • User feedback collection
  • Onboarding questionnaires
  • Survey applications
  • Data tracking in apps
  • Remote data synchronization

Key features

  • Easy questionnaire creation
  • Local and remote data storage
  • Cross-platform compatibility
  • Trackable user responses
  • Simple API integration

Suitable for

  • App developers
  • Product teams
  • UX researchers
  • Educational app creators
  • Feedback system integrators

Considerations

  • Requires setup for remote storage
  • Limited built-in analytics
  • No real-time collaboration
  • Dependent on external backend for cloud sync
  • Basic UI components only

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Customizable Questionnaire for Flutter.

This package allows to create questionnaire (similar to poll but with a valid value option) that is customizable by the developer. It can be used to create very fancy quiz that you can adapt to your app design and will run in all platforms.

The idea of this package was based in Flutter Polls

Features

Animated
animated demo
How do it look

animated demo animated demo

Getting started

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  inquiry: latest_version

Import it:

import 'package:inquiry/inquiry.dart';

Usage

You can create a simple inquiry with


Inquiry(
  inquiryId: 'inquiry',
  options: List.generate(
    5, (index) {
      return InquiryOption(
        id: index,
        title: Text(
          'Option $index',
        ),
        votes: 0,
        rightAnswer: index == 2,
      );
    },
  ),
  titleWidget: Text(
    "Title of the Inquiry",
    style: const TextStyle(
      fontWeight: FontWeight.w500,
      fontSize: 16,
    ),
  ),
  onVoted: (option, amount) {
    print("Voted option: ${option.title}. "
        "The option is ${option.rightAnswer ? 'correct' : 'incorrect'}");
    return Future.value(true);
  },
);

You can customize the look and feel with InquiryStyle

  InquiryStyle(
    optionsBorderRadius: BorderRadius.circular(8),
    votedInquiryPercentRadius: const Radius.circular(8),
    optionsBorder: Border.all(color: Colors.black),
    rightAnswerBorder: Border.all(color: Colors.green),
    optionsBackgroundColor: Colors.grey.shade300,
    wrongBackgroundColor: Colors.red.shade100,
    rightBackgroundColor: Colors.green.shade100,
    optionsSplashColor: Colors.blue,
    votedWrongProgressColor: Colors.red.shade300,
    votedRightProgressColor: Colors.green.shade300,
    voteInProgressColor: Colors.blue,
    voteButtonStyle: ElevatedButton.styleFrom(
      backgroundColor: Colors.blue,
      foregroundColor: Colors.white,
      padding:
      const EdgeInsets.symmetric(horizontal: 24, vertical: 8),
    ),
    crossAxisAlignment: CrossAxisAlignment.start,
  )

for more information look at the example

Additional information

You can contribute to the package any time, just create a Pull Request. All contributions are welcome 👍🏼

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.