View flutter_adaptive_markdown_source.dart
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(const MyApp()); | |
class MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return const MaterialApp( |
View flutter_github_ci.yml
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
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build_web: |
View riverpod_flutter_widgets.dart
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/material.dart'; | |
import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
import 'package:riverpod_annotation/riverpod_annotation.dart'; | |
part 'generated.g.dart'; | |
@riverpod | |
class GeneratedWidget extends _$GeneratedWidget { |
View flutter_search.dart
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:cloud_firestore/cloud_firestore.dart'; | |
import 'package:date_format/date_format.dart'; | |
import 'package:firebase_analytics/firebase_analytics.dart'; | |
import 'package:firebase_analytics/observer.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:native_widgets/native_widgets.dart'; | |
import 'package:songlist_pro/util/globals.dart' as globals; | |
import 'package:tonic/tonic.dart'; |
View run.dart
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
export 'run.io.dart' if (dart.library.html) 'run.web.dart'; |
View flutter-multi-touch-canvas-demo.dart
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 { |
View flutter_infinite_canvas.dart
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:vector_math/vector_math_64.dart' hide Colors; | |
void main() { | |
final controller = WidgetCanvasController([ | |
WidgetCanvasChild( | |
key: UniqueKey(), | |
offset: Offset.zero, | |
size: const Size(400, 800), | |
child: Scaffold( |
View dart_to_dart.dart
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
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:analyzer/dart/ast/ast.dart'; | |
import 'package:analyzer/dart/ast/token.dart'; | |
import 'package:analyzer/src/dart/ast/ast.dart'; | |
import 'package:meta/meta.dart'; | |
/// A visitor used to write a source representation of a visited AST node (and |
View flutter_canvas_demo.dart
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(const StoryBoardExample()); | |
} | |
class StoryBoardExample extends StatelessWidget { | |
const StoryBoardExample({super.key}); | |
@override |
View adaptive_scaffold.dart
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 kTabletBreakpoint = 720.0; | |
const kDesktopBreakpoint = 1200.0; | |
const kSideMenuWidth = 250.0; | |
class AdaptiveScaffold extends StatelessWidget { | |
final List<TabItem> tabs; | |
final int selectedIndex; | |
final ValueChanged<int> onSelectionChanged; |
NewerOlder