Download flutter/dev/integration_tests/flavors/lib/main.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 817 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/dev/integration_tests/flavors/lib/main.dart
- Command line
-
hf download hf://luom2645/agent-workspace/flutter/dev/integration_tests/flavors/lib/main.dart
-
curl -L -o main.dart https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/dev/integration_tests/flavors/lib/main.dart
817 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/services.dart'; | |
| import 'package:flutter_driver/driver_extension.dart'; | |
| void main() { | |
| enableFlutterDriverExtension(); | |
| runMainApp(); | |
| } | |
| void runMainApp() { | |
| runApp(const Center(child: Flavor())); | |
| } | |
| class Flavor extends StatefulWidget { | |
| const Flavor({super.key}); | |
| State<Flavor> createState() => _FlavorState(); | |
| } | |
| class _FlavorState extends State<Flavor> { | |
| Widget build(BuildContext context) { | |
| return const Directionality( | |
| textDirection: TextDirection.ltr, | |
| child: Text(appFlavor ?? 'null', key: ValueKey<String>('flavor')), | |
| ); | |
| } | |
| } | |