Download flutter/dev/integration_tests/hybrid_android_views/lib/page.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 787 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/dev/integration_tests/hybrid_android_views/lib/page.dart
- Command line
-
hf download hf://luom2645/agent-workspace/flutter/dev/integration_tests/hybrid_android_views/lib/page.dart
-
curl -L -o page.dart https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/dev/integration_tests/hybrid_android_views/lib/page.dart
787 Bytes
| // Copyright 2014 The Flutter Authors. 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'; | |
| /// The base class of all the testing pages | |
| // | |
| /// A testing page has to override this in order to be put as one of the items in the main page. | |
| abstract class PageWidget extends StatelessWidget { | |
| const PageWidget(this.title, this.tileKey, {super.key}); | |
| /// The title of the testing page | |
| /// | |
| /// It will be shown on the main page as the text on the link which opens the page. | |
| final String title; | |
| /// The key of the ListTile that navigates to the page. | |
| /// | |
| /// Used by the integration test to navigate to the corresponding page. | |
| final ValueKey<String> tileKey; | |
| } | |