Skip to content

Instantly share code, notes, and snippets.

View faustobdls's full-sized avatar
🏠
Working from home

Fausto Blanco faustobdls

🏠
Working from home
View GitHub Profile
@faustobdls
faustobdls / main.dart
Last active December 9, 2023 00:13
TimeLine
// 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});
@faustobdls
faustobdls / main.dart
Last active July 13, 2023 17:04
joyful-spray-8340
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')}");
@faustobdls
faustobdls / 3_runapp.dart
Last active October 7, 2022 23:08
3 RunApp in one app
// 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();
const obj = {
list: [
{ param1: "gasgdgasdggasd", param2: 9 },
{ param1: "gasgdgasdggasd", param2: 9 },
{ param1: "gasgdgasdggasd", param2: 9 },
{ param1: "gasgdgasdggasd", param2: 9 },
{ param1: "gasgdgasdggasd", param2: 9 },
],
};
{
"name": "SFMC Collection",
"packages": [
{
"url": "https://github.com/salesforce-marketingcloud/sfmc-sdk-ios.git"
},{
"url": "https://github.com/salesforce-marketingcloud/MarketingCloudSDK-iOS.git"
},
]
}
@faustobdls
faustobdls / bemol_ribbon.dart
Last active December 6, 2021 19:35
Animations
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,
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[];
}
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;
@faustobdls
faustobdls / colors.dart
Created January 14, 2021 14:28
Exemplo para ver as cores
void main() {
print('Orange(0xFFEFB52D): ${0xFFEFB52D}');
print('Green(0xFF23C653): ${0xFF23C653}');
}
// 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 {