cli_menu 0.2.3 cli_menu: ^0.2.3 copied to clipboard
A simple menu (picker) that works on the command line. Works on Linux, Mac and Windows. Supports choosing by arrows on ANSI terminals.
import 'package:cli_menu/cli_menu.dart';
void main() {
print('Pick favorite color:');
final menu = Menu(['Red', 'Green', 'Orange', 'Fuchsia']);
final result = menu.choose();
print('You picked: $result');
}