Download flutter/packages/integration_test/example/lib/my_web_app.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 847 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/packages/integration_test/example/lib/my_web_app.dart
- Command line
-
hf download hf://luom2645/agent-workspace/flutter/packages/integration_test/example/lib/my_web_app.dart
-
curl -L -o my_web_app.dart https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/packages/integration_test/example/lib/my_web_app.dart
847 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:web/web.dart' as web; | |
| // ignore_for_file: public_member_api_docs | |
| void startApp() => runApp(const MyWebApp()); | |
| class MyWebApp extends StatefulWidget { | |
| const MyWebApp({super.key}); | |
| State<MyWebApp> createState() => _MyWebAppState(); | |
| } | |
| class _MyWebAppState extends State<MyWebApp> { | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| home: Scaffold( | |
| appBar: AppBar(title: const Text('Plugin example app')), | |
| body: Center( | |
| key: const Key('mainapp'), | |
| child: Text('Platform: ${web.window.navigator.platform}\n'), | |
| ), | |
| ), | |
| ); | |
| } | |
| } | |