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
// ignore_for_file: public_member_api_docs, constant_identifier_names | |
const _maxCallDepth = 100; | |
void cycleDetected() { | |
throw Exception('Cycle detected'); | |
} | |
void mutationDetected() { | |
throw Exception('Computed cannot have side-effects'); | |
} |
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:cronet_http/cronet_http.dart'; | |
import 'package:cupertino_http/cupertino_http.dart'; | |
import 'package:device_info_plus/device_info_plus.dart'; | |
import 'package:fetch_client/fetch_client.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:http/http.dart'; | |
import 'package:platform_info/platform_info.dart'; | |
import 'package:flutter/foundation.dart'; | |
void main() async { |
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 'package:flutter/widgets.dart'; | |
abstract class StreamWidget extends StatefulWidget { | |
const StreamWidget({Key? key}) : super(key: key); | |
Stream<Widget> build(BuildContext context); | |
void initState() {} |
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 'two_pane.dart'; | |
class InputOutputPreview extends StatefulWidget { | |
const InputOutputPreview({ | |
super.key, | |
required this.title, | |
required this.input, | |
required this.output, |
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:math' as math; | |
import 'package:flutter/gestures.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { |
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
# 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 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/foundation.dart'; | |
import 'dart:io'; | |
bool get isWeb => kIsWeb; | |
bool get isMobile => !isWeb && (Platform.isIOS || Platform.isAndroid); | |
bool get isDesktop => | |
!isWeb && (Platform.isMacOS || Platform.isWindows || Platform.isLinux); | |
bool get isApple => !isWeb && (Platform.isIOS || Platform.isMacOS); | |
bool get isGoogle => !isWeb && (Platform.isAndroid || Platform.isFuchsia); |
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_markdown/flutter_markdown.dart'; | |
import 'package:go_router/go_router.dart'; | |
import 'package:markdown/markdown.dart' as md; | |
import 'package:url_launcher/url_launcher.dart'; | |
class MarkdownView extends StatelessWidget { | |
const MarkdownView({ | |
Key? key, | |
required this.markdown, |
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
figma.codegen.on('generate', async (event) => { | |
const name = event.node.name; | |
const names = getUniqueNodeNames(event.node, {}); | |
const css = await createCss(event.node, names); | |
const tokens = getTokens(event.node, []); | |
const html = await createHtml(event.node, names); | |
const code = template(name, css, html, tokens); | |
return [ | |
{ | |
language: "TYPESCRIPT", |
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'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatefulWidget { | |
@override | |
_MyAppState createState() => _MyAppState(); | |
} | |
class _MyAppState extends State<MyApp> { |