Download flutter/examples/api/test/sample_templates/material.0_test.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 855 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/examples/api/test/sample_templates/material.0_test.dart
- Command line
-
hf download hf://luom2645/agent-workspace@7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/examples/api/test/sample_templates/material.0_test.dart
-
curl -L -o material.0_test.dart https://huggingface.co/luom2645/agent-workspace/resolve/7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/examples/api/test/sample_templates/material.0_test.dart
855 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'; | |
| import 'package:flutter_api_samples/sample_templates/material.0.dart' as example; | |
| import 'package:flutter_test/flutter_test.dart'; | |
| // This is an example of a test for API example code. | |
| // | |
| // It only tests that the example is presenting what it is supposed to, but you | |
| // should also test the basic functionality of the example to make sure that it | |
| // functions as expected. | |
| void main() { | |
| testWidgets('Example app has a placeholder', (WidgetTester tester) async { | |
| await tester.pumpWidget( | |
| const example.SampleApp(), | |
| ); | |
| expect(find.byType(Scaffold), findsOneWidget); | |
| expect(find.byType(Placeholder), findsOneWidget); | |
| }); | |
| } | |