key=$( base64 ./key.json )
echo $key
- Add new env variable
KEYeqaul to above - Add new env variable
KEY_PATHe.g. ./lib/key.json
| import 'dart:math' as math; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Flutter Animated Icon', |
| // 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 'dart:math' as math; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { |
| final time1 = DateTime.now(); | |
| for (int i = 0; i < 1000000; i++) { | |
| final order = (log(69123.65) / log(10) + 1).floor(); | |
| final val = (69123.56 - 215.34) / pow(10, (order - 3)); | |
| final fin = val.round(); | |
| } | |
| final time1end = DateTime.now(); | |
| print(time1end.difference(time1)); |
| void main() { | |
| DateTime currentDate = DateTime.now(); | |
| DateTime date = currentDate.add(Duration(days: -13)); | |
| print(date); | |
| DateTime date1 = currentDate.add(Duration(days: -14)); | |
| print(date1); | |
| print(date.difference(date1)); | |
| } |
| { | |
| // Place your snippets for dart here. Each snippet is defined under a snippet name and has a prefix, body and | |
| // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
| // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
| // same ids are connected. | |
| // Example: | |
| // "Print to console": { | |
| // "prefix": "log", | |
| // "body": [ | |
| // "console.log('$1');", |
| { | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| "label": "Download translations from Localizely", | |
| "type": "shell", | |
| "command": "./scripts/localizely.sh", | |
| "problemMatcher": [] | |
| } | |
| ] |
| import 'package:flutter/gestures.dart' show DragStartBehavior; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| void main() { | |
| runApp( | |
| MaterialApp( | |
| debugShowCheckedModeBanner: false, | |
| theme: ThemeData( | |
| primaryColor: Colors.indigo, |