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:my_app/data_model/serializers.dart'; | |
| import 'package:flutter/foundation.dart'; | |
| Future<T> decodeJson<T>(String res) async { | |
| var list = List(); | |
| list.add(res); | |
| list.add(T); | |
| //Replace compute with spawning any other isolate, compute is simpler abstraction of isolate api. |
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
| // MIT License | |
| // | |
| // Copyright (c) 2023 Simon Lightfoot | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is |
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:async'; | |
| import 'dart:core'; | |
| import 'dart:io'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:path/path.dart' as p; | |
| import 'package:path_provider/path_provider.dart'; | |
| void main() => runLoggedApp(App()); |
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'; | |
| @immutable | |
| class ClipShadowPath extends StatelessWidget { | |
| final Shadow shadow; | |
| final CustomClipper<Path> clipper; | |
| final Widget child; | |
| ClipShadowPath({ | |
| @required this.shadow, |
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:io"; | |
| import "dart:async"; | |
| main() async { | |
| HttpClientRequest request = | |
| await HttpClient().post('some.host', 8000, '/upload'); | |
| request.headers.contentType = ContentType.binary; | |
| final file = File('/some/big/file'); |
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:typed_data'; | |
| import 'package:flutter/material.dart'; | |
| import 'dart:convert' show base64; | |
| import 'card_images.dart'; | |
| final Map<String, Uint8List> cardImages = {}; | |
| void main() async { |
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
| # This file contains the fastlane.tools configuration | |
| # You can find the documentation at https://docs.fastlane.tools | |
| # | |
| # For a list of all available actions, check out | |
| # | |
| # https://docs.fastlane.tools/actions | |
| # | |
| # For a list of all available plugins, check out | |
| # | |
| # https://docs.fastlane.tools/plugins/available-plugins |
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 2015 The Chromium Authors. 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:async'; | |
| import 'dart:ui'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/widgets.dart'; |
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'; | |
| import 'package:meta/meta.dart'; | |
| import 'dart:convert' show base64; | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return new MaterialApp( | |
| debugShowCheckedModeBanner: false, |
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 MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return new MaterialApp( | |
| title: 'Flutter Demo', | |
| theme: new ThemeData( |