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

パッケージ詳細v1.0.5

quiz_view

独自のクイズをホストでき、ユーザーインターフェース、テーマ、機能、質問、正解、回答をクリックしたときの関数をカスタマイズできる新しいFlutterパッケージです。

30日間ダウンロード
29
いいね数
24
Pub ポイント
30

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

flutter pub add quiz_view

パッケージ概要

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

Quiz_View は、開発者がアプリ内にカスタマイズ可能なクイズを作成できるFlutterパッケージです。ユーザーインターフェース、テーマ、質問の内容、正解、応答のクリックアクションに対して完全な制御を提供します。柔軟性を重視して設計されており、動的なクイズ作成とソーシャル機能やインタラクティブ機能を持つアプリへのシームレスな統合をサポートしています。教育ツール、エンゲージメントアプリ、またはゲーム化体験に最適です。オープンソースの性質と活発なGitHubリポジトリにより、コミュニティの貢献やカスタマイズを促進しています。

用途

  • インタラクティブな学習アプリ
  • ゲーム化されたソーシャルプラットフォーム
  • ユーザー参加ツール
  • 教育ゲーム
  • ライブクイズイベント

主な機能

  • カスタマイズ可能なUIとテーマ
  • 動的質問および回答処理
  • オンクリック応答関数
  • オープンソースで拡張可能
  • pubを介した簡単な統合
  • 複数のクイズタイプをサポート

適している対象

  • 教育アプリ開発者
  • ソーシャルメディア機能クリエイター
  • ゲーム化の愛好家
  • 基本的なUIスキルを持つFlutter初心者
  • インタラクティブなコンテンツを必要とするアプリ

注意事項

  • 質問と論理の手動設定が必要です
  • 限定された組み込み分析
  • 公式ドキュメントはまだありません
  • プラットフォームのサポートが指定されていません
  • 外部のテーマおよびスタイリングに関する知識に依存します

元の README

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

quiz_view

A new Flutter package project that helps create quizes and surveys. It has a quiz_view customizable widget.

Screenshots

Usage

Example

To use this package :

  • add the dependency to your [pubspec.yaml] file.
  dependencies:
    flutter:
      sdk: flutter
    quiz_view:
How to use
QuizView(
  image: Container(
    width: 150,
    height: 150,
    child: Image.network(
        "https://yt3.ggpht.com/a/AATXAJyPMywRmD62sfK-1CXjwF0YkvrvnmaaHzs4uw=s900-c-k-c0xffffffff-no-rj-mo"),
  ),
  showCorrect: true,
  tagBackgroundColor: Colors.deepOrange,
  tagColor: Colors.black,
  questionTag: "Question: 2",
  answerColor: Colors.white,
  answerBackgroundColor: Color.fromARGB(255, 255, 0, 111),
  questionColor: Colors.white,
  backgroundColor: Color.fromARGB(255, 111, 0, 255),
  width: 300,
  height: 600,
  question: "Which is the best framework for app development?",
  rightAnswer: "Flutter",
  wrongAnswers: ["Fluttor", "Flitter"],
  onRightAnswer: () => print("Right"),
  onWrongAnswer: () => print("Wrong"),
)

License

Copyright 2020 Jay Mehta

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Getting Started

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Example

As time based...

import 'package:flutter/material.dart';
import 'package:quiz_view/quiz_view.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Quiz View Example',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.deepOrange,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Flutter Quiz View Example'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
          child: QuizView(
        image: Container(
          width: 150,
          height: 150,
          child: Image.network(
              "https://yt3.ggpht.com/a/AATXAJyPMywRmD62sfK-1CXjwF0YkvrvnmaaHzs4uw=s900-c-k-c0xffffffff-no-rj-mo"),
        ),
        showCorrect: true,
        tagBackgroundColor: Colors.deepOrange,
        tagColor: Colors.black,
        questionTag: "Question: 2",
        answerColor: Colors.white,
        answerBackgroundColor: Color.fromARGB(255, 255, 0, 111),
        questionColor: Colors.white,
        backgroundColor: Color.fromARGB(255, 111, 0, 255),
        width: 300,
        height: 600,
        question: "Which is the best framework for app development?",
        rightAnswer: "Flutter",
        wrongAnswers: ["Fluttor", "Flitter"],
        onRightAnswer: () => print("Right"),
        onWrongAnswer: () => print("Wrong"),
      )),
    );
  }
}

カテゴリー

ソースリポジトリ

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

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