wizardprompt 1.0.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 4

A library for Dart developers.

Usage #

A simple usage example:

import 'package:wizardprompt/wizardprompt.dart';

void main() {

  final options = [
    // Option(label, value);
    Option('Coffee', 'Cappuccino'),
    Option('Whisky', 'Johnnie Walker Black Label')
  ];

  final prompter = Prompter();

  String drinkOrder = prompter.askMultiple('Choose a drink', options);

  bool answer = prompter.askBinary('Do you like Dart?');
  print(drinkOrder);
  print(answer);
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

1.0.0 #

  • Initial version, created by Stagehand

example/main.dart

import 'package:wizardprompt/wizardprompt.dart';

void main() {

  final options = [
    // Option(label, value);
    Option('Coffee', 'Cappuccino'),
    Option('Whisky', 'Johnnie Walker Black Label')
  ];

  final prompter = Prompter();
  
  String drinkOrder = prompter.askMultiple('Choose a drink', options);

  bool answer = prompter.askBinary('Do you like Dart?');
  print(drinkOrder);
  print(answer);
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  wizardprompt: ^1.0.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:wizardprompt/wizardprompt.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
7
Health:
Code health derived from static analysis. [more]
--
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
--
Overall:
Weighted score of the above. [more]
4
Learn more about scoring.

This package is not analyzed, because it is discontinued.

Health issues and suggestions

Document public APIs. (-1 points)

11 out of 11 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0