This file contains 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
// BSD 3-Clause License | |
// | |
// Copyright (c) 2021, Mike Rydstrom (Rydmike) | |
// All rights reserved. | |
// | |
// Redistribution and use in source and binary forms, with or without | |
// modification, are permitted provided that the following conditions are met: | |
// | |
// 1. Redistributions of source code must retain the above copyright notice, | |
// this list of conditions and the following disclaimer. |
This file contains 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
[SEVERE] build_node_compilers:entrypoint on node/index.dart: | |
Dart2Js finished with: | |
packages/js/js.dart:20:15: | |
Error: Null safety features are disabled for this library. | |
final String? name; | |
^ | |
packages/path/path.dart:100:4: | |
Error: Null safety features are disabled for this library. | |
Uri? _currentUriBase; |
This file contains 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
class MyAnimatedFoo extends StatefulWidget { | |
const MyAnimatedFoo({Key? key}) : super(key: key); | |
@override | |
State<MyAnimatedFoo> createState() => _MyAnimatedFooState(); | |
} | |
class _MyAnimatedFooState extends State<MyAnimatedFoo> { | |
double height = 100; |
This file contains 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
class MyCustomImplicitAnimation extends StatelessWidget { | |
const MyCustomImplicitAnimation({Key? key}) : super(key: key); | |
static final dimensionsTween = Tween<double>(begin: 100.0, end: 200.0); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: TweenAnimationBuilder<double>( |
This file contains 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'; | |
class MyExplicitAnimation extends StatefulWidget { | |
const MyExplicitAnimation({Key? key}) : super(key: key); | |
@override | |
_MyExplicitAnimationState createState() => _MyExplicitAnimationState(); | |
} | |
class _MyExplicitAnimationState extends State<MyExplicitAnimation> |
This file contains 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 'dart:developer'; | |
import 'dart:math' as math; | |
import 'dart:ui'; | |
import 'package:audioplayers/audioplayers.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:flutter/widgets.dart'; |
This file has been truncated, but you can view the full file.
This file contains 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
{ | |
"version": 2, | |
"channels": 1, | |
"sample_rate": 48000, | |
"samples_per_pixel": 256, | |
"bits": 16, | |
"length": 38795, | |
//Only thing we need is π this data points list. | |
"data": [ | |
0, |
This file contains 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 'dart:html'; | |
import 'package:csv/csv.dart'; | |
String parseDataToCsvString(List<List<dynamic>> data) { | |
final String csvString = | |
ListToCsvConverter().convert(data, fieldDelimiter: ","); | |
return csvString; | |
} |
This file contains 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
include: package:very_good_analysis/analysis_options.yaml | |
linter: | |
rules: | |
analyzer: | |
exclude: | |
- test/ | |
plugins: | |
- dart_code_metrics |
This file contains 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
class JsonParserIsolate { | |
final String input; | |
JsonParserIsolate(this.input); | |
Future parseJson({Function(String)? onError}) async { | |
final completer = Completer(); | |
var port = ReceivePort(); | |
var errorPort = ReceivePort(); |
OlderNewer