This file contains hidden or 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
| 'use strict'; | |
| const MANIFEST = 'flutter-app-manifest'; | |
| const TEMP = 'flutter-temp-cache'; | |
| const CACHE_NAME = 'flutter-app-cache'; | |
| const RESOURCES = { | |
| "index.html": "a58c88636d635d4e0c49558074bc4ef2", | |
| "/": "a58c88636d635d4e0c49558074bc4ef2", | |
| "main.dart.js": "5bb905324f0943ab98284299b6b0e012", | |
| "favicon.png": "5dcef449791fa27946b3d35ad8803796", | |
| "icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1", |
This file contains hidden or 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
| // widget_integration_test.dart | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_test/flutter_test.dart'; | |
| import 'package:hello_world/main.dart'; | |
| import 'package:integration_test/integration_test.dart'; | |
| void main() { | |
| IntegrationTestWidgetsFlutterBinding.ensureInitialized(); | |
| testWidgets('Counter increments smoke test', (WidgetTester tester) async { |
This file contains hidden or 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
| // integration_test.dart | |
| import 'package:integration_test/integration_test_driver.dart'; | |
| Future<void> main() => integrationDriver(); |
This file contains hidden or 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
| // Type alias for functions (existing) | |
| typedef ValueChanged<T> = void Function(T value); | |
| // Type alias for classes (new!) | |
| typedef StringList = List<String>; | |
| // Rename classes in a non-breaking way (new!) | |
| @Deprecated("Use NewClassName instead") | |
| typedef OldClassName<T> = NewClassName<T>; |
This file contains hidden or 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(App()); | |
| class App extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) => MaterialApp( | |
| title: 'Flutter Text Editing Fun', | |
| home: HomePage(), | |
| ); |
This file contains hidden or 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/services.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) => MaterialApp( | |
| title: 'Flutter TextField Key Binding Demo', | |
| home: Scaffold(body: UnforgivingTextField()), |
This file contains hidden or 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(App()); | |
| class App extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) => MaterialApp( | |
| title: 'Automatic Scrollbars', | |
| home: HomePage(), | |
| ); |
This file contains hidden or 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/gestures.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:url_launcher/url_launcher.dart' as urlLauncher; | |
| void main() => runApp(App()); | |
| class App extends StatelessWidget { | |
| static const title = 'Flutter App'; | |
| @override | |
| Widget build(BuildContext context) => MaterialApp( |
This file contains hidden or 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 App()); | |
| class App extends StatelessWidget { | |
| static const title = 'Flutter App'; | |
| const App({Key? key}) : super(key: key); | |
| @override | |
| Widget build(BuildContext context) => const MaterialApp( |