- Three finger drag
- Hide recent apps in dock
- System Preferences -> Dock & Menu Bar -> Uncheck "Show recent applications in Dock"
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 'dart:isolate'; | |
void main() async { | |
final receivePort = ReceivePort(); | |
final newIsolate = await Isolate.spawn(createNewIsolate, receivePort.sendPort); | |
final message = await receivePort.first; // Receive the result. | |
print("Main Isolate: $message"); // Print "Main Isolate: Hello New Isolate" | |
} | |
void createNewIsolate(SendPort sendPort) { |
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 'dart:isolate'; | |
void main() async { | |
// 1. Create the main receive port. | |
final mainReceivePort = ReceivePort(); | |
// 2. Spawn an isolate with the main send port. | |
final newIsolate = await Isolate.spawn(createNewIsolate, mainReceivePort.sendPort); | |
mainReceivePort.listen((message) { |
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
{ | |
"average_frame_build_time_millis": 6.7094482758620675, | |
"90th_percentile_frame_build_time_millis": 16.72, | |
"99th_percentile_frame_build_time_millis": 32.135, | |
"worst_frame_build_time_millis": 32.135, | |
"missed_frame_build_budget_count": 4, | |
"average_frame_rasterizer_time_millis": 3.961793103448275, | |
"90th_percentile_frame_rasterizer_time_millis": 4.718, | |
"99th_percentile_frame_rasterizer_time_millis": 7.026, | |
"worst_frame_rasterizer_time_millis": 7.026, |
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
// Record the performance of the app. | |
await binding.traceAction( | |
() async { | |
// Scroll until the item to be found appears. | |
await tester.scrollUntilVisible( | |
itemFinder, | |
500.0, | |
scrollable: listFinder, | |
); | |
}, |
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/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@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
import 'dart:math'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@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:math'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@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(MyApp()); | |
class MyApp extends StatefulWidget { | |
@override | |
_MyAppState createState() => _MyAppState(); | |
} | |
class _MyAppState extends State<MyApp> { |
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 _PageAState extends State<PageA> { | |
... | |
// A widget for page transition between the `pageA` and `pageB` after tapping the `FAB button`. | |
Widget get _pageTransition { | |
// Dismiss ripple widget if `_pageTransitionRect` is null. | |
if (_pageTransitionRect == null) { | |
return Container(); | |
} |
NewerOlder