Skip to main content

flutter_ai_context 0.7.0 copy "flutter_ai_context: ^0.7.0" to clipboard
flutter_ai_context: ^0.7.0 copied to clipboard

A local-first project intelligence layer for Flutter codebases. Give AI a real understanding of your Flutter project.

example/example.dart

// ignore_for_file: avoid_print

import 'package:flutter_ai_context/flutter_ai_context.dart';

/// Demonstrates building and serializing a small project knowledge graph.
void main() {
  final config = ProjectConfig(
    projectName: 'my_flutter_app',
    stateManagement: 'riverpod',
    routing: 'go_router',
  );

  print('Project: ${config.projectName}');
  print('State management: ${config.stateManagement}');

  final graph = ProjectGraph();
  graph.addNode(GraphNode(
    id: 'feature:auth',
    type: NodeType.feature,
    name: 'auth',
  ));
  graph.addNode(GraphNode(
    id: 'file:lib/features/auth/auth_screen.dart',
    type: NodeType.screen,
    name: 'AuthScreen',
    file: 'lib/features/auth/auth_screen.dart',
  ));
  graph.addEdge(GraphEdge(
    from: 'feature:auth',
    to: 'file:lib/features/auth/auth_screen.dart',
    type: EdgeType.contains,
  ));

  print('Graph nodes: ${graph.nodes.length}');
  print('Graph edges: ${graph.edges.length}');
  print('Screens: ${graph.nodesByType(NodeType.screen).map((n) => n.name).join(', ')}');
}
5
likes
0
points
197
downloads

Publisher

unverified uploader

Weekly Downloads

A local-first project intelligence layer for Flutter codebases. Give AI a real understanding of your Flutter project.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, args, collection, crypto, dart_mcp, glob, meta, path, stream_channel, yaml

More

Packages that depend on flutter_ai_context