Nível 89+, Cultivo God/Evil
Arma com Nível de Matança (Arma do 85, 95 ou 101)
| flutter packages pub run build_runner watch --delete-conflicting-outputs |
| import 'dart:async'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_localizations/flutter_localizations.dart'; | |
| import 'package:intl/date_symbol_data_local.dart' as intl; | |
| import 'package:intl/intl.dart' as intl; | |
| class _PTBRMaterialLocalizationsDelegate | |
| extends LocalizationsDelegate<MaterialLocalizations> { |
| du -sh directory_name | |
| du -sh * |
| import 'package:flutter_masked_text/flutter_masked_text.dart'; | |
| class MaskUtil{ | |
| static MoneyMaskedTextController mask = MoneyMaskedTextController(decimalSeparator: ',', thousandSeparator: '.'); | |
| static String textToBRL(String value){ | |
| mask.text = value; | |
| return mask.text; | |
| } |
| Container( | |
| width: MediaQuery.of(context).size.width / 1.2, | |
| height: 70, | |
| child: TextField( | |
| decoration: InputDecoration( | |
| border: OutlineInputBorder( | |
| borderRadius: BorderRadius.all( | |
| Radius.circular(40), | |
| ), | |
| borderSide: BorderSide(width: 2) |
| static bool isEmail(String em) { | |
| String p = r'^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$'; | |
| RegExp regExp = new RegExp(p); | |
| return regExp.hasMatch(em); | |
| } |
| ~/mongodb/bin/mongo |
| _configureNotification(){ | |
| FirebaseMessaging _firebaseMessaging = FirebaseMessaging(); | |
| _firebaseMessaging.configure( | |
| onMessage: (Map<String, dynamic> message) async { | |
| print("onMessage"); | |
| print(message); | |
| if(Platform.isIOS){ | |
| if(message["aps"] != null){ | |
| NotificationService.showNotification(message["aps"]["alert"]["title"], | |
| message["aps"]["alert"]["body"]); |