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:developer'; | |
import 'package:logging/logging.dart'; | |
import 'package:stack_trace/stack_trace.dart'; | |
class LOG { | |
static String _getTag() { | |
try { | |
var t = Trace.current(2); | |
var fileLine = t.frames[0].toString().split(" "); | |
//return name and line number |
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 CrossFade<T> extends StatefulWidget { | |
final T initialData; | |
final T data; | |
final Duration duration; | |
final Widget Function(T data) builder; | |
final VoidCallback onFadeComplete; | |
const CrossFade({ |
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:math' show Rectangle; | |
import 'package:my_app/database/database.dart'; | |
import 'package:my_app/util/chart/tooltip_data.dart'; | |
import 'package:charts_flutter/flutter.dart' | |
show | |
CircleSymbolRenderer, | |
Color, | |
SelectionModel, | |
ChartCanvas, |
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'; | |
typedef DataDidChangeCallback<T> = bool Function(T o, T n); | |
///Fades out the old data and back in with the new | |
class AnimatedFadeOutIn<T> extends StatefulWidget { | |
///If [initialData] is not null on first build it will be shown. | |
///Directly after that the animation changes the value to [data]. | |
final T? initialData; |