This file contains 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
// ignore_for_file: prefer_const_constructors, prefer_const_literals_to_create_immutables | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); |
This file contains 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("_initialsFormatter ${_initialsFormatter('ana')}"); | |
print("_initialsFormatter ${_initialsFormatter('Nonato De Sousa ')}"); | |
print("_initialsFormatter ${_initialsFormatter('ana beatriz')}"); | |
print("_initialsFormatter ${_initialsFormatter('ana beatriz')}"); | |
print("_initialsFormatter ${_initialsFormatter('ana beatriz')}"); | |
print("_initialsFormatter ${_initialsFormatter('Tabs Tabs Tabs Brenda Tabs')}"); | |
print("_initialsFormatter ${_initialsFormatter('Débora beatriz Laís Taissa')}"); | |
print("_initialsFormatter ${_initialsFormatter('ana beatriz')}"); |
This file contains 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
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
void stamp(String s) => print('${DateTime.now()} | $s'); | |
void main() async { | |
AwaitState(); |
This file contains 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
const obj = { | |
list: [ | |
{ param1: "gasgdgasdggasd", param2: 9 }, | |
{ param1: "gasgdgasdggasd", param2: 9 }, | |
{ param1: "gasgdgasdggasd", param2: 9 }, | |
{ param1: "gasgdgasdggasd", param2: 9 }, | |
{ param1: "gasgdgasdggasd", param2: 9 }, | |
], | |
}; |
This file contains 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
{ | |
"name": "SFMC Collection", | |
"packages": [ | |
{ | |
"url": "https://github.com/salesforce-marketingcloud/sfmc-sdk-ios.git" | |
},{ | |
"url": "https://github.com/salesforce-marketingcloud/MarketingCloudSDK-iOS.git" | |
}, | |
] | |
} |
This file contains 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'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', | |
debugShowCheckedModeBanner: false, |
This file contains 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 { Injectable, Inject } from '@angular/core'; | |
import { DOCUMENT } from '@angular/common'; | |
import { DomController } from '@ionic/angular'; | |
import { environment } from '../../environments/environment'; | |
interface Theme { | |
name: string; | |
styles: ThemeStyle[]; | |
} |
This file contains 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<String> contatos = ['Fausto Blanco Diniz', 'Juselania Silva', 'Angela Maria', 'Ana', '']; | |
contatos = contatos.map( | |
(contato){ | |
String a = contato.split(' ').where((e) => e.isNotEmpty).toList().map( | |
(c) => c.substring(0,1) | |
).join(''); | |
// print(a); | |
if (a.isEmpty || a == '' || a.length == 1) { | |
return a; |
This file contains 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('Orange(0xFFEFB52D): ${0xFFEFB52D}'); | |
print('Green(0xFF23C653): ${0xFF23C653}'); | |
} |
This file contains 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
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:flutter/foundation.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { |
NewerOlder