View app_bar_actions.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'; | |
class Home extends StatelessWidget { | |
const Home({ Key? key }) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
actions: <Widget>[ |
View go_router_github_login.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 2013 The Flutter Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
// Based on https://codelabs.developers.google.com/codelabs/flutter-github-client#3 | |
// Must provide values for githubClientId, githubClientSecret, githubScopers in | |
// _AppState per the codelab | |
import 'dart:io'; |
View go_router_redirect.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 2013 The Flutter Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
// Copied from | |
// https://github.com/flutter/packages/blob/main/packages/go_router/example/lib/redirection.dart | |
// https://github.com/flutter/packages/blob/main/packages/go_router/example/lib/shared/data.dart | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; |
View down_double_tap.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'; | |
class Home extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: Center( | |
child: Listener( | |
onPointerDown: (_) { | |
print('Pointer Down'); |
View const_material_state_property.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'; | |
class _MaterialStatePropertyAll<T> implements MaterialStateProperty<T> { | |
const _MaterialStatePropertyAll(this.value); | |
final T value; | |
@override | |
T resolve(Set<MaterialState> states) => value; |
View split_view_v4.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
// https://gist.github.com/HansMuller/19f2ea6717863bb48df129273031394c | |
import 'dart:math' as math; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/gestures.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
import 'package:flutter/services.dart'; |
NewerOlder