패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.0.5

quiz_view

자신만의 퀴즈를 호스팅하고 사용자 인터페이스, 테마, 기능, 질문, 정답 및 답변 클릭 시 실행되는 함수를 사용자 지정할 수 있는 새로운 플러터 패키지입니다.

30일 다운로드
29
좋아요
24
Pub 점수
30

패키지 설치

flutter pub add quiz_view

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Quiz_View는 개발자가 애플리케이션 내에서 사용자 정의 가능한 퀴즈를 만들 수 있도록 해주는 Flutter 패키지입니다. 사용자 인터페이스, 테마, 질문 내용, 정답 및 응답 클릭 시 동작에 대한 완전한 제어를 제공합니다. 유연성을 고려해 설계되어 동적 퀴즈 생성과 소셜 또는 상호작용 기능을 갖춘 앱에 원활하게 통합할 수 있습니다. 교육 도구, 참여형 앱, 또는 게임화된 경험에 이상적입니다. 오픈소스 성격과 활성화된 GitHub 저장소 덕분에 커뮤니티 기여와 맞춤화를 장려합니다.

사용 사례

  • 인터랙티브 학습 앱
  • 게임화된 소셜 플랫폼
  • 사용자 참여 도구
  • 교육 게임
  • 라이브 퀴즈 이벤트

주요 기능

  • 사용자 정의 가능한 UI 및 테마
  • 동적 질문 및 답변 처리
  • 클릭 응답 함수
  • 오픈소스이며 확장 가능
  • pub를 통한 간편한 통합
  • 여러 가지 퀴즈 유형을 지원합니다

적합한 대상

  • 교육 앱 개발자
  • 소셜 미디어 기능 창작자
  • 게임화 애호가
  • 기본 UI 기술을 갖춘 플러터 초보자
  • 상호작용 콘텐츠가 필요한 앱

고려 사항

  • 질문 및 로직의 수동 설정이 필요합니다
  • 제한된 내장 분석
  • 공식 문서가 아직 없습니다
  • 플랫폼 지원이 지정되지 않음
  • 외부 테마 및 스타일링 지식에 의존함

원본 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"),
      )),
    );
  }
}

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.