Dart import 'dart:convert'; import 'package:convert/convert.dart'; import 'package:crypto/crypto.dart'; var key = "my key"; var message = "my message"; // use sha1 algorithm var hmac = new Hmac(sha1, UTF8.encode(key)); // conv
Aqueduct + Nginx Error HttpException: Trying to set 'Transfer-Encoding: Chunked' on HTTP 1.0 headers #0 _HttpHeaders.chunkedTransferEncoding= (dart:io/http_headers.dart:166) #1 _HttpHeaders._addTransferEncoding (dart:io/http_h
Date time dialog example: new FormField( builder: (FormFieldState<DateTime> field) { return new Container( padding: const EdgeInsets.only(top: 20.0), child: new FlatButton( &nbs
Dart filter number from string var toPhone = (phone) { var regex = new RegExp(r"(\w+)"); var results = regex.allMatches(phone).map((m) => m[0]).toList(); return results.join(); }; var phone = toPhone("(54) 999.767.081");