Last updated:
0 purchases
log symbols
log_symbols #
Dart package to use modern and beautiful symbols in the terminal.
Suitable with almost all terminal packages.
Install #
# recommened install
dart pub add log_symbols --dev
copied to clipboard
Usage #
Import log_symbols into your file.
import 'package:log_symbols/log_symbols.dart';
void main() {
print('${LogSymbols().success()} Log Symbols working...'); // remove this after work
}
copied to clipboard
That's all. Now you can start using other symbols!
import 'package:log_symbols/log_symbols.dart';
import 'package:my_audio/my_audio.dart';
void playAudio(String url) {
final Audio play = Audio.play(url);
play.then(() => print('${LogSymbols().play()} Succesfully played song.'));
}
copied to clipboard
With other packages #
log_symbols can also be used with other packages.
import 'package:log_symbols/log_symbols.dart';
import 'package:ansi_styles/ansi_styles.dart';
bool isUsernameValid(String username) {
if (username.includes('@') || username.includes(' ') || username.includes('%') /* ... */) {
print(AnsiStyles.red('${LogSymbols().error()} Username is invalid'));
return false;
} else {
print(AnsiStyles.green('${LogSymbols().success()} Username is valid'));
return true;
}
}
copied to clipboard
Example #
See example for see usage example
Changelog #
See changelog for more information.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.