mirror of
https://github.com/Livinglist/Hacki.git
synced 2025-05-21 16:06:28 +08:00

* bumped version. * bumped version. * bumped version * bumped version. * downgrade flutter version. * Use transparent color for navigation bar (#70) * Use transparent color for navigation bar * Fixed whitespace Co-authored-by: Niklas Weinhart <git@weinhart.net> * bumped ios version. * bumped versions. * updated min screen width. * removed print. * fixed stack overflow in EditCubit. * added integration test. * bumped version. Co-authored-by: wnhrt <github@weinhart.net> Co-authored-by: Niklas Weinhart <git@weinhart.net>
30 lines
1.0 KiB
Dart
30 lines
1.0 KiB
Dart
import 'package:flutter_driver/flutter_driver.dart' as driver;
|
|
import 'package:integration_test/integration_test_driver.dart';
|
|
|
|
Future<void> main() {
|
|
return integrationDriver(
|
|
responseDataCallback: (Map<String, dynamic>? data) async {
|
|
if (data != null) {
|
|
final driver.Timeline timeline = driver.Timeline.fromJson(
|
|
data['scrolling_timeline'] as Map<String, dynamic>,
|
|
);
|
|
|
|
// Convert the Timeline into a TimelineSummary that's easier to
|
|
// read and understand.
|
|
final driver.TimelineSummary summary =
|
|
driver.TimelineSummary.summarize(timeline);
|
|
|
|
// Then, write the entire timeline to disk in a json format.
|
|
// This file can be opened in the Chrome browser's tracing tools
|
|
// found by navigating to chrome://tracing.
|
|
// Optionally, save the summary to disk by setting includeSummary
|
|
// to true
|
|
await summary.writeTimelineToFile(
|
|
'scrolling_timeline',
|
|
pretty: true,
|
|
);
|
|
}
|
|
},
|
|
);
|
|
}
|