パッケージ、リポジトリ、アプリカテゴリを検索

flutter_polls のカバー
パッケージ詳細v0.1.6

flutter_polls

Flutter用のカスタマイズ可能なアンケート。シンプルで使いやすく、非常にカスタマイズ可能。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1130
いいね数
170
Pub ポイント
150

パッケージをインストール

flutter pub add flutter_polls

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Flutter Polls は、Flutter アプリケーションにインタラクティブなアンケートを統合するためのカスタマイズ可能で使いやすいパッケージです。ソーシャルメディアやコミュニティ駆動型アプリ向けに設計されており、最小限のセットアップでアンケートを作成・表示できます。Android、iOS、Web、macOS、Windows、Linux など複数のプラットフォームをサポートしており、広範な互換性を確保しています。シンプルさと柔軟性を重視し、アンケートの外観、応答、相互作用をカスタマイズ可能です。ユーザーからのフィードバックや投票によるエンゲージメントに依存するアプリに最適です。

用途

  • ユーザーのフィードバック収集
  • コミュニティ参加機能
  • インタラクティブなアプリコンテンツ
  • リアルタイム投票システム
  • ソーシャルメディアの統合
  • ゲーム化されたユーザーインタラクション

主な機能

  • カスタマイズ性の高いUI
  • クロスプラットフォーム対応
  • シンプルなAPI統合
  • リアルタイム応答追跡
  • 複数選択および評価のアンケートに対応
  • 軽量で高速なパフォーマンス

適している対象

  • ソーシャルメディアアプリ
  • 教育プラットフォーム
  • 調査ツール
  • イベントプランニングアプリ
  • コミュニティフォーラム
  • ユーザー参加機能

注意事項

  • 高度なデザインにはカスタムスタイルが必要です
  • 限定された組み込み分析
  • 標準ではサーバーサイドの永続化は提供されていない
  • データ同期のための外部状態管理に依存する
  • 大規模なポーリングシステム向けに最適化されていない

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Flutter Polls

Customizable Polls for Flutter. Simple, easy to use and highly customizable.

flutter_polls

Flutter Polls on pub.dev

Getting Started

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

dependencies:
  ...
  flutter_polls: ^0.1.6

Import it:

import 'package:flutter_polls/flutter_polls.dart';

Example

Check out the example project in the example directory here: example on github

flutter_polls
FlutterPolls(
    pollId: '1',
    onVoted: (PollOption pollOption, int newTotalVotes) {
      print('Voted: ${pollOption.id}');
    },
    pollOptionsSplashColor: Colors.white(),
    votedProgressColor: Colors.greyDark().withOpacity(0.3),
    votedBackgroundColor: Colors.grey().withOpacity(0.2),
    votesTextStyle: themeData.textTheme.subtitle1,
    votedPercentageTextStyle:
        themeData.textTheme.headline4?.copyWith(
    color: Colors.black(),
    ),
    votedCheckmark: Icon(
        Icons.circle_check,
        color: AppColors.black(),
        height: 18,
        width: 18,
    ),
    pollTitle: Align(
    alignment: Alignment.centerLeft,
    child: AutoSizeText(
        poll['title'],
        style: TextStyle(
            fontSize: 20,
        ),
    ),
    pollOptions: poll['options'].map(
    (option) {
        return PollOption(
        id: option['id'],
        title: AutoSizeText(
            option['title'],
            style: tTextStyle(
            fontSize: 20,
        ),
        ),
        votes: option['votes'],
        );
    },
    ).toList(),
    metaWidget: Row(
    children: [
        const SizedBox(width: 6),
        AutoSizeText(
        '•',
        style: TextStyle(
            fontSize: 20,
        ),
        ),
        const SizedBox(
        width: 6,
        ),
        AutoSizeText(
        '2 weeks left',
        style: TextStyle(
            fontSize: 20,
        ),
        ),
    ],
    ),
),

Parameters

Parameter Type Description
pollId String The poll id.
hasVoted bool Whether the user has voted.
userVotedOptionId String The user voted option id. If the user hasn't voted, this will be null.
onVoted void Function(PollOption pollOption, int newTotalVotes) The callback when the user voted.
pollTitle Widget The poll title. Can be any widget.
pollOptions List The poll options. Each item is a map with the following keys: id, title, votes.
heightBetweenTitleAndOptions double The height between the poll title and the poll options.
heightBetweenOptions double The height between the poll options.
votesText String Votes text. Can be "Votes", "Votos", "Ibo" or whatever language. If not specified, "Votes" is used.
votesTextStyle TextStyle The style of the votes text.
metaWidget Widget The meta widget. Can be any widget.
createdBy String The poll creator.
userToVote String The user to vote.
pollStartDate DateTime The poll start date.
pollEnded bool If the poll is closed.
pollOptionsHeight double The poll options height.
pollOptionsWidth double The poll options width.
pollOptionsBorderRadius BorderRadius The poll options border radius.
pollOptionsBorder BoxBorder The poll options border.
pollOptionsFillColor Color The poll options fill color.
pollOptionsSplashColor Color The poll options splash color.
votedPollOptionsRadius Radius The voted poll options border radius.
votedBackgroundColor Color The voted poll options background color.
votedProgressColor Color The voted poll options progress color.
voteInProgressColor Color The voted poll options background color when user has voted and its still in progress.
votedCheckmark Widget The voted poll options checkmark.
votedPercentageTextStyle TextStyle The voted poll options percentage text style.
votedAnimationDuration int The voted poll options animation duration.
loadingWidget Widget The loading widget when a user votes. Can be any widget.

カテゴリー

依存関係

依存関係一覧 2 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。