dart_dev_utils 1.0.0 copy "dart_dev_utils: ^1.0.0" to clipboard
dart_dev_utils: ^1.0.0 copied to clipboard

outdated

Package criada para externalizar função uteis que auxiliará no desenvolvimento de apps dart e flutter para todos as plataformas.

example/dart_dev_utils_example.dart

import 'package:dart_dev_utils/dart_dev_utils.dart';

void main() async{
  
  // Formato: 000.000.000-00
  print(Constants.i.regExpCPF.hasMatch('077.744.914-57'));
  
  // Formatos: 00900000000; (00)900000000; 0090000-0000; (00)90000-0000
  print(Constants.i.regExpCellPhoneBR.hasMatch('(21)985854628'));

  // Formatos: 0000000000; (00)00000000; 000000-0000; (00)0000-0000
  print(Constants.i.regExpFixePhoneBR.hasMatch('(21)85854628'));

  print('suebersson montalvão'.capitalizeAll);

  var f = Functions.i.checkFileExist(filePath: 'C:/Users/name/AppData/Local/Temp/cachedFilesFlutterApp/Google-flutter-logo.png');
  print('Exist: $f');

  await Functions.i.getByteDataFromInternet(url: 'https://getlogo.net/wp-content/uploads/2020/08/flutter-logo-vector.png').then((uint8List) {
    Functions.i.createFile(filePath: 'C:/Users/name/...png', bytesData: uint8List).then((value) {
      print('---- Arquivo creado com sucesso ----');
    });
  });

  await Functions.i.getByteDataFromFile(filePath: 'C:/Users/name/...png').then((value) {
    print(value);
  });

}
2
likes
0
pub points
43%
popularity

Publisher

unverified uploader

Package criada para externalizar função uteis que auxiliará no desenvolvimento de apps dart e flutter para todos as plataformas.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on dart_dev_utils