This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| //Colors | |
| Color crossColor = const Color(0xFF1ABDD5); | |
| Color circleColor = const Color(0xFFD8B9FA); | |
| Color accentColor = const Color(0xFF90A4AE); | |
| void main() => runApp(MyApp()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'dart:math'; | |
| ///Author: Douglas Bezerra Possas | |
| ///Contact: douglasbpossas@gmail.com | |
| ///Gist: https://gist.github.com/dpossas/457c1429931f06e1f5d3cf64cb019408 | |
| ///GitHub: https://github.com/dpossas/flutter-whatsapp/ | |
| final Color darkBlue = Color.fromARGB(255, 18, 32, 47); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| Bag bag = Bag(items: []); | |
| print('Total: ${bag.total}'); | |
| Product p1 = Product(name: 'Pen', price: 1.15); | |
| print('Total: ${bag+p1}'); | |
| Product p2 = Product(name: 'Pencil', price: 2); | |
| print('Total: ${bag+p2}'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| for (int i = 0; i < 5; i++) { | |
| print('Olá mundo #${i + 1}'); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| List historico_diagnostico = [ | |
| { | |
| "Deep Security": [ | |
| [9, 73.33], | |
| [10, 56.34] | |
| ] | |
| }, | |
| { | |
| "Apex One": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| print("Olá!"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| print("===================== NOME"); | |
| var nome; //valor padrao null | |
| print(nome.runtimeType); //tipo inicial Null (objeto Null) | |
| print(nome == null); //validade inicial | |
| print(nome == Null); //Null != null | |
| print(nome is Null); //Objeto Null | |
| nome = "Douglas"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "CarMetaID": 102123, | |
| "CarOrderNumber": "2", | |
| "TotalItems": 10, | |
| "Title": "CHRYSLER PACIFICA", | |
| "ToyNumber": "GHD84", | |
| "CarMetaSEOName": "chrysler-pacifica", | |
| "CategoryId": null, | |
| "MiniCollectionId": 1247, | |
| "MiniCollection": "BAJA BLAZERS", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Product { | |
| // Attributes with private privacy level | |
| int _id; | |
| String _title; | |
| bool _active; | |
| double _price; | |
| // Function definition like a constructor | |
| Product(this._title, this._active, this._price); | |