Download flutter/dev/integration_tests/deferred_components_test/lib/component1.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 753 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/dev/integration_tests/deferred_components_test/lib/component1.dart
- Command line
-
hf download hf://luom2645/agent-workspace@7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/dev/integration_tests/deferred_components_test/lib/component1.dart
-
curl -L -o component1.dart https://huggingface.co/luom2645/agent-workspace/resolve/7d4c5ffdb4518a5d7456ef06ab77458fcf42663a/flutter/dev/integration_tests/deferred_components_test/lib/component1.dart
753 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'; | |
| class LogoScreen extends StatelessWidget { | |
| const LogoScreen({super.key}); | |
| static const String _testSentinel = 'Running deferred code'; | |
| Widget build(BuildContext context) { | |
| print(_testSentinel); | |
| return Container( | |
| padding: const EdgeInsets.all(25), | |
| color: Colors.blue, | |
| child: Column( | |
| children: <Widget>[ | |
| const Text('DeferredWidget', key: Key('DeferredWidget')), | |
| Image.asset('customassets/flutter_logo.png', key: const Key('DeferredImage')), | |
| ], | |
| ), | |
| ); | |
| } | |
| } | |