flutter_code_combiner 1.0.1-dev.1 copy "flutter_code_combiner: ^1.0.1-dev.1" to clipboard
flutter_code_combiner: ^1.0.1-dev.1 copied to clipboard

A Flutter package to combine all Flutter project files into a single file for AI tools

example/lib/main.dart

import 'dart:io';
import 'package:flutter_code_combiner/flutter_code_combiner.dart';

void main() async {
  // Example 1: Basic usage
  final combined = await FlutterCodeCombiner.combineProject('./');
  print(combined);

  // Example 2: Save to file
  final outputFile = File('combined_flutter_code.txt');
  await outputFile.writeAsString(combined);
  print('Code saved to: ${outputFile.absolute.path}');

  // Example 3: Error handling
  try {
    await FlutterCodeCombiner.combineProject('/invalid/path');
  } catch (e) {
    print('Error: $e');
  }
}
2
likes
150
points
42
downloads

Publisher

verified publisherpubb.dev

Weekly Downloads

A Flutter package to combine all Flutter project files into a single file for AI tools

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

args, flutter, logging, path, yaml

More

Packages that depend on flutter_code_combiner