Skip to content

Instantly share code, notes, and snippets.

View kleberksms's full-sized avatar

Kleber Syd Moraes da Silva kleberksms

View GitHub Profile
Container(
child: Table(
border: TableBorder(
left: BorderSide(
width: 1,
color: Color(0xFFB1B1B1),
style: BorderStyle.solid,
),
right: BorderSide(
width: 1,
Container(
child: Table(
border: TableBorder(
left: BorderSide(
width: 1,
color: Color(0xFFB1B1B1),
style: BorderStyle.solid,
),
right: BorderSide(
width: 1,
export class Inflector {
static pluralize(word: string): string {
if (!word) {
return;
}
const isPluralAlready = word.endsWith('ies') || word.endsWith('es') || (!word.endsWith('us') && word.endsWith('s'));
if (isPluralAlready) {
return word;
}
if (word.endsWith('y') && !word.endsWith('ay')) {
const MAX_LENGHT_FILE = 7;
const MAX_UPLOAD_SIZE = 5000000;
const temporaryFileList = [];
const dangerToast = (text) => {
console.error(text);
};
const maxLenghtFilesIsValid = (files = []) => {
if (!Array.isArray(files)) {
const generateRandomFloatInRange = (min, max) => {
return (Math.random() * (max - min + 1)) + min;
};
let obj = {
compras:[
{
produtos:[
{
valor_unitario:generateRandomFloatInRange(0,2)