genui_dartantic 0.6.1 copy "genui_dartantic: ^0.6.1" to clipboard
genui_dartantic: ^0.6.1 copied to clipboard

Integration package for genui and Dartantic AI.

example/lib/main.dart

// 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.

import 'package:flutter/material.dart';
import 'package:logging/logging.dart';

import 'src/provider_selection_page.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();

  // Configure logging
  Logger.root.level = Level.INFO;
  Logger.root.onRecord.listen(
    (record) => debugPrint(
      '[${record.level.name}] ${record.loggerName}: ${record.message}',
    ),
  );

  runApp(const TicTacToeApp());
}

class TicTacToeApp extends StatelessWidget {
  const TicTacToeApp({super.key});

  @override
  Widget build(BuildContext context) => MaterialApp(
    title: 'GenUI Tic Tac Toe',
    debugShowCheckedModeBanner: false,
    home: const ProviderSelectionPage(),
  );
}
0
likes
150
points
243
downloads

Publisher

unverified uploader

Weekly Downloads

Integration package for genui and Dartantic AI.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

dartantic_ai, flutter, genui, json_schema, json_schema_builder

More

Packages that depend on genui_dartantic