Skip to content

Instantly share code, notes, and snippets.

View enriquesaid's full-sized avatar
:shipit:

Enrique Marques Junior enriquesaid

:shipit:
View GitHub Profile
// 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 main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@enriquesaid
enriquesaid / main.dart
Last active November 2, 2023 21:15
Dart BR Code PIX Estático
import 'dart:convert';
import 'package:crclib/catalog.dart';
// const test_pix = '00020126360014BR.GOV.BCB.PIX0114+55119647714305204000053039865406986.005802BR5913Fulano de Tal6008BRASILIA62070503***63047E91';
// const test_pix2 = '00020126360014BR.GOV.BCB.PIX0114+55119647714305204000053039865406100.005802BR5907Enrique6009Sao Paulo62070503***630402D3';
class Data {
const Data({
required this.amout,
required this.pixKey,
FROM node:20-alpine as build
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
FROM httpd:2.4 as runtime
COPY --from=build /app/dist /usr/local/apache2/htdocs/
EXPOSE 80
enum Achievement { achievementName }
class Level {
const Level(this.label, this.necessaryPoints, this.index);
final String label;
final int necessaryPoints;
final int index;
Level next(List<Level> levels) {
import React, { FC, useEffect } from 'react';
import FingerprintScanner from 'react-native-fingerprint-scanner';
const BiometricPopup: FC = () => {
const getMessage = (type: string) => {
if (type === 'Face ID') {
return 'Scan your Face on the device to continue';
}
return 'Scan your Fingerprint on the device scanner to continue';
};
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
final appTitle = 'Drawer Demo';
@override
Widget build(BuildContext context) {
return MaterialApp(
import 'package:flutter/material.dart';
void main() => runApp(new MaterialApp(home: new MyApp(), debugShowCheckedModeBanner: false,),);
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => new _MyAppState();
}
class _MyAppState extends State<MyApp> {
@enriquesaid
enriquesaid / main.dart
Last active May 27, 2020 19:52
tested basic main flutter
import 'package:flutter/material.dart';
void main() {
App().bootstrap(runApp);
}
class App {
Future<void> bootstrap(Function runner) async {
// ...before
runner(MyApp());
@enriquesaid
enriquesaid / main_test.dart
Last active May 27, 2020 14:21
flutter main file test
import 'package:flutter_app/main.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';
class FakeFunctions {
void runApp(dynamic widget) {}
}
class FunctionsMock extends Mock implements FakeFunctions {}
@enriquesaid
enriquesaid / main.dart
Last active May 27, 2020 14:21
basic main on flutter
void main() {
runApp(new MyApp());
}