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 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/rendering.dart'; | |
| void main() => runApp(App()); | |
| class App extends StatelessWidget { | |
| static const title = 'Flutter longpress'; | |
| @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(App()); | |
| class App extends StatelessWidget { | |
| static const title = 'Flutter App'; | |
| @override | |
| Widget build(BuildContext context) => MaterialApp( | |
| title: title, | |
| theme: ThemeData( |
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 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| 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 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/rendering.dart'; | |
| import 'package:flutter/gestures.dart'; | |
| void main() => runApp(App()); | |
| class App extends StatelessWidget { | |
| static const title = 'Flutter Tooltip + ReorderableListView'; | |
| @override |
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
| typedef MessageBoxNative = Int32 Function( | |
| IntPtr hWnd, | |
| Pointer<Utf16> lpText, | |
| Pointer<Utf16> lpCaption, | |
| Int32 uType | |
| ); | |
| typedef MessageBoxDart = int Function( | |
| int hWnd, | |
| Pointer<Utf16> lpText, |
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
| class CounterState extends State<RestorableCounter> with RestorationMixin { | |
| @override | |
| String get restorationId => widget.restorationId; | |
| RestorableInt _counter = RestorableInt(0); | |
| @override | |
| void restoreState(RestorationBucket oldBucket) => registerForRestoration(_counter, 'count'); | |
| void _incrementCounter() => setState(() => _counter.value++); |
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
| void main() { | |
| GestureBinding.instance.resamplingEnabled = true; | |
| run(MyApp()); | |
| } |
OlderNewer