prompter_tet 0.0.1 copy "prompter_tet: ^0.0.1" to clipboard
prompter_tet: ^0.0.1 copied to clipboard

Library to create CLI wizards

example/main.dart

import 'package:prompter_tet/prompter_tet.dart';

void main() {
  // var terminal = new Terminal();

  final options = [
    new Option('I want pink', '#FFCOCB'),
    new Option('I want grey', '#C0C0C0')
  ];

  final prompter = new Prompter();
  String colorCode = prompter.askMultiple('Select Color', options);

  bool answer = prompter.askBinary('Do you like this lib');
  print(colorCode);
  print(answer);
  // print(prompter.askBinary('Do you love weed?'));

  // final usersPick = prompter.ask('What is your favurite Color?', options);
  // print(usersPick);

  //terminal.printOptions(options);

  // final prompter = new Prompter();
  // prompter.ask('What color do you want?', options);

  // terminal.printOptions(options);
  // var response = terminal.collectInput();
  // print(response);

  // terminal.clearScreen();
  // terminal.printPrompt('Hala Ralipane');
  // var input = terminal.collectInput();
  // print('You have just entered: $input');
  //print('Halla Ralipane');
}
0
likes
10
pub points
0%
popularity

Publisher

unverified uploader

Library to create CLI wizards

Homepage

License

unknown (LICENSE)

More

Packages that depend on prompter_tet