This file contains 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(BooksApp()); | |
} | |
class Book { | |
final String title; | |
final String author; |
This file contains 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 MyApp()); | |
/// This is the main application widget. | |
class MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); | |
static const String _title = 'Flutter Code Sample'; |
This file contains 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
2021-08-04 08:39:27.222 25637-25684/? D/ClockIconDelegate: ClockShortcInfo needInvalidate false, oldHour = 8, newHour = 8, obj = net.oneplus.launcher.dynamicicon.clock.ClockIconDelegate@cb6b255 | |
2021-08-04 08:39:27.257 6236-6236/? V/A11yEventProcessor: Event listeners: ScrollEventInterpreter,Pipeline,ProcessorEventQueue | |
2021-08-04 08:39:27.258 6236-6236/? D/ProcessorEventQueue: Processing event: AccessibilityEvent TYPE_WINDOW_CONTENT_CHANGED ContentChangeTypes=CONTENT_CHANGE_TYPE_SUBTREE time=159376454 class="android.widget.FrameLayout" package="net.oneplus.launcher" description="Search" enabled ScrollX=0 ScrollY=0 MaxScrollX=0 MaxScrollY=0 | |
2021-08-04 08:39:27.262 6236-6236/? V/Compositor: eventInterpretation= TYPE_WINDOW_CONTENT_CHANGED | |
2021-08-04 08:39:27.262 6236-6236/? V/ParseTreeCommentNode: Getting output refreshSourceNode for event TYPE_WINDOW_CONTENT_CHANGED | |
2021-08-04 08:39:27.263 6236-6236/? V/ParseTreeCommentNode: Evaluating: $node.liveRegion != 'none' | |
2021-08-04 08:39:27.263 6236-6236/? |
This file contains 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
2021-08-03 08:42:50.513 1699-1699/? V/SettingsProvider: Notifying for 0: content://settings/global/device_is_dimming | |
2021-08-03 08:42:53.248 1209-1209/? W/adbd: timeout expired while flushing socket, closing | |
2021-08-03 08:42:54.085 1013-4665/? E/oemlogkit: oemlogkit: Android log path: (null). Inside | |
2021-08-03 08:42:54.086 1013-4665/? E/oemlogkit: oemlogkit: !start_log, sleep | |
2021-08-03 08:42:55.523 1699-3118/? I/FastCharge: read mChargeType = 0 | |
2021-08-03 08:42:55.525 1699-3118/? I/FastCharge: set protect_charging = false | |
2021-08-03 08:42:55.527 3638-3638/? D/QtiCarrierConfigHelper: WARNING, no carrier configs on phone Id: 0 | |
2021-08-03 08:42:55.527 2994-2994/? D/KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED | |
2021-08-03 08:42:55.527 2994-2994/? D/KeyguardUpdateMonitor: pdCharge false, chargingstatus 0, fastcharge:0 | |
2021-08-03 08:42:55.531 2994-2994/? E/NavigationButtonUtils: res.getInteger(resId) = 0 |
This file contains 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
@MaterialAutoRouter( | |
replaceInRouteName: 'Screen,Route', | |
routes: <AutoRoute>[ | |
AutoRoute( | |
path: "/", | |
page: AppStackScreen, | |
redirect: () { | |
if (!signedIn) { | |
redirect('/signIn'); | |
} |
This file contains 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(BooksApp()); | |
} | |
class Book { | |
final String title; | |
final String author; |
This file contains 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
Future<void> _followLink(BuildContext context) async { | |
if (!link.uri!.hasScheme || !kisWeb) { | |
// A uri that doesn't have a scheme is an internal route name. In this | |
// case, we push it via Flutter's navigation system instead of letting the | |
// browser handle it. | |
final String routeName = link.uri.toString(); | |
await pushRouteNameToFramework(context, routeName); | |
return; | |
} |
This file contains 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
Running command "java -Drobolectric.offline=true -Drobolectric.dependency.dir=/Users/chtai/git/engine/src/third_party/android_embedding_dependencies/lib -classpath /Users/chtai/git/engine/src/third_party/android_tools/sdk/platforms/android-30/android.jar:/Users/chtai/git/engine/src/third_party/android_embedding_dependencies/lib/*:/Users/chtai/git/engine/src/out/android_debug_unopt/flutter.jar:/Users/chtai/git/engine/src/out/android_debug_unopt/robolectric_tests.jar -Drobolectric.logging=stdout org.junit.runner.JUnitCore io.flutter.FlutterTestSuite" | |
JUnit version 4.13 | |
Exception in thread "main" java.lang.UnsupportedClassVersionError: io/flutter/FlutterTestSuite has been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java Runtime only recognizes class file versions up to 52.0 | |
at java.lang.ClassLoader.defineClass1(Native Method) | |
at java.lang.ClassLoader.defineClass(ClassLoader.java:763) | |
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: |
This file contains 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
// Copyright 2021, the Flutter project authors. Please see the AUTHORS file | |
// for details. 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'; | |
void main() { | |
runApp(BooksApp()); | |
} |
This file contains 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
testWidgets('BackButtonListener takes priority over root back dispatcher', (WidgetTester tester) async { | |
final SimpleRouteInformationProvider provider = SimpleRouteInformationProvider(); | |
provider.value = const RouteInformation( | |
location: 'initial', | |
); | |
final BackButtonDispatcher outerDispatcher = RootBackButtonDispatcher(); | |
await tester.pumpWidget(buildBoilerPlate( | |
Router<RouteInformation>( | |
backButtonDispatcher: outerDispatcher, | |
routeInformationProvider: provider, |
NewerOlder