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
| // 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 |
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: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, |
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
| 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 |
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
| 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) { |
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 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'; | |
| }; |
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'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| final appTitle = 'Drawer Demo'; | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
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'; | |
| void main() => runApp(new MaterialApp(home: new MyApp(), debugShowCheckedModeBanner: false,),); | |
| class MyApp extends StatefulWidget { | |
| @override | |
| _MyAppState createState() => new _MyAppState(); | |
| } | |
| class _MyAppState extends State<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'; | |
| void main() { | |
| App().bootstrap(runApp); | |
| } | |
| class App { | |
| Future<void> bootstrap(Function runner) async { | |
| // ...before | |
| runner(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_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 {} |
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() { | |
| runApp(new MyApp()); | |
| } |
NewerOlder