Download flutter/packages/integration_test/example/lib/my_app.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 894 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/packages/integration_test/example/lib/my_app.dart
- Command line
-
hf download hf://luom2645/agent-workspace/flutter/packages/integration_test/example/lib/my_app.dart
-
curl -L -o my_app.dart https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/packages/integration_test/example/lib/my_app.dart
894 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 'dart:io'; | |
| import 'package:flutter/material.dart'; | |
| import 'simple_platform_view.dart'; | |
| // ignore_for_file: public_member_api_docs | |
| void startApp() => runApp(const MyApp()); | |
| class MyApp extends StatefulWidget { | |
| const MyApp({super.key}); | |
| State<MyApp> createState() => _MyAppState(); | |
| } | |
| class _MyAppState extends State<MyApp> { | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| home: Scaffold( | |
| appBar: AppBar(title: const Text('Plugin example app')), | |
| body: Column( | |
| children: <Widget>[ | |
| Text('Platform: ${Platform.operatingSystem}\n'), | |
| const Expanded(child: SimplePlatformView()), | |
| ], | |
| ), | |
| ), | |
| ); | |
| } | |
| } | |