string_width 0.1.5 string_width: ^0.1.5 copied to clipboard
Get the visual width of a string - the number of columns required to display it
example/string_width_example.dart
import 'package:string_width/string_width.dart';
void main() {
print(stringWidth('a'));
//=> 1
print(stringWidth('å€'));
//=> 2
print(stringWidth('\u001B[1må€\u001B[22m'));
//=> 2
}