cli_menu 0.4.0+1 cli_menu: ^0.4.0+1 copied to clipboard
A simple command-line menu (picker) compatible with Linux, Mac and Windows. It supports selection by using arrow keys 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');
}