Skip to content

Instantly share code, notes, and snippets.

View ten_thousand.html
Hello world Hello world Hello world Hello world Hello world Hello world 0</br>
Hello world Hello world Hello world Hello world Hello world Hello world 1</br>
Hello world Hello world Hello world Hello world Hello world Hello world 2</br>
Hello world Hello world Hello world Hello world Hello world Hello world 3</br>
Hello world Hello world Hello world Hello world Hello world Hello world 4</br>
Hello world Hello world Hello world Hello world Hello world Hello world 5</br>
Hello world Hello world Hello world Hello world Hello world Hello world 6</br>
Hello world Hello world Hello world Hello world Hello world Hello world 7</br>
Hello world Hello world Hello world Hello world Hello world Hello world 8</br>
Hello world Hello world Hello world Hello world Hello world Hello world 9</br>
View color_tween_sample.dart
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart' show timeDilation;
class StaggerAnimation extends StatelessWidget {
View disabled_text_button.dart
import 'package:flutter/material.dart';
class Home extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: TextButton.icon(
icon: const Icon(Icons.check_box),
label: const Text('TextButton'),
View new_button_universe.dart
import 'package:flutter/material.dart';
class DialogButtons extends StatelessWidget {
@override
Widget build(BuildContext context) {
void dismissDialog() {
Navigator.of(context).pop();
}
void showDemoDialog(String message, ButtonStyle style1, [ButtonStyle style2]) {
View outline_button_hover_example.dart
import 'package:flutter/scheduler.dart' show timeDilation;
import 'package:flutter/material.dart';
class Home extends StatelessWidget {
@override
Widget build(BuildContext context) {
final ButtonStyle style = ButtonStyle(
backgroundColor: MaterialStateProperty.all<Color>(Colors.white),
elevation: MaterialStateProperty.resolveWith<double>((Set<MaterialState> states) {
return states.contains(MaterialState.hovered) ? 2 : null;
View thb_fail.dart
// Copyright 2014 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.
import 'package:flutter/material.dart';
class Home extends StatelessWidget {
@override
Widget build(BuildContext context) {
View overflow_bar_demo.dart
// A demo of the OverflowBar widget. Resize DartPad's browser window to see the overflow layout.
//
// Uses the old button classes because DartPad.
// @dart = 2.8
import 'dart:math' as math;
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
View scroll_fade_demo.dart
import 'package:flutter/material.dart';
class DemoShader extends StatefulWidget {
const DemoShader({ Key key, this.child }) : super(key: key);
final Widget child;
@override
_DemoShaderState createState() => _DemoShaderState();
}
View app_es.arb
{
"@@locale": "es",
"helloWorld": "Hola Mundo!"
}
View sample_l10n_pubspec.yaml
name: l10n_new_arb
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter