Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions examples/verdure/client/.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
# This file should be version controlled and should not be manually edited.

version:
revision: "6252afa4996d60dfde22374285e196a009e3fc86"
channel: "main"
revision: "f6ff1529fd6d8af5f706051d9251ac9231c83407"
channel: "stable"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 6252afa4996d60dfde22374285e196a009e3fc86
base_revision: 6252afa4996d60dfde22374285e196a009e3fc86
- platform: android
create_revision: 6252afa4996d60dfde22374285e196a009e3fc86
base_revision: 6252afa4996d60dfde22374285e196a009e3fc86
create_revision: f6ff1529fd6d8af5f706051d9251ac9231c83407
base_revision: f6ff1529fd6d8af5f706051d9251ac9231c83407
- platform: web
create_revision: f6ff1529fd6d8af5f706051d9251ac9231c83407
base_revision: f6ff1529fd6d8af5f706051d9251ac9231c83407

# User provided section

Expand Down
3 changes: 2 additions & 1 deletion examples/verdure/client/lib/core/logging.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
// 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:logging/logging.dart';

final appLogger = Logger('VerdureApp');

void initLogging() {
Logger.root.level = Level.ALL;
Logger.root.onRecord.listen((record) {
print(
debugPrint(
'${record.level.name}: ${record.time}: '
'${record.loggerName}: ${record.message}',
);
Expand Down
Binary file added examples/verdure/client/web/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/verdure/client/web/icons/Icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/verdure/client/web/icons/Icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions examples/verdure/client/web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<!-- Copyright 2025 The Flutter Authors.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<html>
<head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.

The path provided below has to start and end with a slash "/" in order for
it to work correctly.

For more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base

This is a placeholder for base href that will be replaced by the value of
the `--base-href` argument provided to `flutter build`.
-->
<base href="$FLUTTER_BASE_HREF">

<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="A new Flutter project.">

<!-- iOS meta tags & icons -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="verdure">
<link rel="apple-touch-icon" href="icons/Icon-192.png">

<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png"/>

<title>verdure</title>
<link rel="manifest" href="manifest.json">
</head>
<body>
<script src="flutter_bootstrap.js" async></script>
</body>
</html>
35 changes: 35 additions & 0 deletions examples/verdure/client/web/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "verdure",
"short_name": "verdure",
"start_url": ".",
"display": "standalone",
"background_color": "#0175C2",
"theme_color": "#0175C2",
"description": "A new Flutter project.",
"orientation": "portrait-primary",
"prefer_related_applications": false,
"icons": [
{
"src": "icons/Icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "icons/Icon-512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "icons/Icon-maskable-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "icons/Icon-maskable-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
]
}
5 changes: 2 additions & 3 deletions packages/genui_a2ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ Add the following to your `pubspec.yaml`:
dependencies:
flutter:
sdk: flutter
genui: ^0.5.1 # Or the latest version
genui_a2ui: ^0.5.1 # Or the latest version
a2a: ^3.1.0 # Or the latest version
genui: ^0.6.0 # Or the latest version
genui_a2ui: ^0.6.0 # Or the latest version
```

Then run `flutter pub get`.
Expand Down
14 changes: 14 additions & 0 deletions packages/genui_a2ui/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2025 The Flutter Authors.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

targets:
$default:
builders:
json_serializable:
options:
explicit_to_json: true
source_gen:combining_builder:
options:
preamble: |
// ignore_for_file: specify_nonobvious_property_types, duplicate_ignore
24 changes: 24 additions & 0 deletions packages/genui_a2ui/lib/src/a2a/a2a.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copyright 2025 The Flutter Authors.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

/// A library for building Agent-to-Agent (A2A) clients.
library;

// Client exports.
export 'client/a2a_client.dart';
export 'client/a2a_exception.dart';
export 'client/http_transport.dart';
export 'client/sse_transport.dart';
export 'client/transport.dart';
export 'core/agent_capabilities.dart';
// Core data models and exceptions.
export 'core/agent_card.dart';
export 'core/events.dart';
export 'core/list_tasks_params.dart';
export 'core/list_tasks_result.dart';
export 'core/message.dart';
export 'core/part.dart';
export 'core/push_notification.dart';
export 'core/security_scheme.dart';
export 'core/task.dart';
Loading
Loading