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:built_value/built_value.dart'; | |
part 'built_value_limits.g.dart'; | |
abstract class BuiltLimitBreak implements Built<BuiltLimitBreak, BuiltLimitBreakBuilder> { | |
BuiltLimitBreak._(); | |
factory BuiltLimitBreak([void Function(BuiltLimitBreakBuilder) updates]) = _$BuiltLimitBreak; | |
int get value0; | |
int get value1; |
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'; | |
// box-shadow: 0px 1px 4px rgba(158, 158, 160, 0.04), 0px 2px 16px rgba(163, 163, 163, 0.1); | |
const shadowLight = [ | |
BoxShadow( | |
color: Color.fromRGBO(158, 158, 160, 0.04), | |
spreadRadius: 0, | |
blurRadius: 4, | |
offset: Offset(0, 1), | |
), |
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'; | |
// box-shadow: 0px 1px 4px rgba(158, 158, 160, 0.04), 0px 2px 16px rgba(163, 163, 163, 0.1); | |
const shadowLight = [ | |
BoxShadow( | |
color: Color.fromRGBO(158, 158, 160, 0.04), | |
spreadRadius: 0, | |
blurRadius: 4, | |
offset: Offset(0, 1), | |
), |
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:gql_exec/gql_exec.dart'; | |
import "package:async/async.dart"; | |
import 'package:gql/ast.dart'; | |
import 'package:gql_dio_link/gql_dio_link.dart'; | |
import 'package:gql_exec/gql_exec.dart' as gql_exec; | |
import 'package:gql_dio_link/gql_dio_link.dart'; | |
/// A handler of Link Exceptions. |
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 SentryGqlTracerLink extends Link { | |
@override | |
Stream<Response> request(Request request, [NextLink? forward]) { | |
assert(forward != null, "this is not a terminating link and needs a NextLink"); | |
final transaction = Sentry.startTransaction( | |
"GraphQL ${request.operation.operationName}", | |
request.operation.operationName ?? "unnamed", | |
); | |
return forward!(request).transform(StreamTransformer.fromHandlers( |
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'; | |
import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
final valueProvider = StreamProvider((ref) => | |
Stream.periodic(const Duration(milliseconds: 500), (time) => time)); | |
final futureAwaitDerivedProvider = FutureProvider((ref) async { | |
final value = await ref.watch(valueProvider.future); | |
return value % 2 == 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 'package:flutter/material.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
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:io'; | |
import 'package:collection/collection.dart'; | |
import 'package:glob/glob.dart'; | |
import 'package:path/path.dart' as path; | |
final _sep = path.separator; | |
void generateTestWrapper() { | |
final packageRoot = Directory.current; |
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'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
int counter = 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:async"; | |
import "dart:isolate"; | |
import 'package:ferry/ferry.dart'; | |
import 'package:ferry/ferry_isolate.dart'; | |
import "package:gql_error_link/gql_error_link.dart"; | |
import "package:gql_exec/gql_exec.dart"; | |
import "package:gql_http_link/gql_http_link.dart"; | |
import "package:gql_link/gql_link.dart"; | |
import "package:gql_transform_link/gql_transform_link.dart"; |