flutterflow_flash_beta 0.1.4 copy "flutterflow_flash_beta: ^0.1.4" to clipboard
flutterflow_flash_beta: ^0.1.4 copied to clipboard

discontinuedreplaced by: flutterflow_cli

Dart SDK for programmatically reading and modifying FlutterFlow projects. Built for the beta environment.

example/main.dart

import 'dart:io';

import 'package:flutterflow_flash_beta/flutterflow_flash.dart';

void buildStarterApp(App app) {
  app.themeColor('primary', 0xFF0B57D0);
  app.themeColor('primaryBackground', 0xFFF7F9FC);
  app.primaryFont('Inter');

  app.page(
    'StarterPage',
    route: '/',
    isInitial: true,
    description: 'Simple starter page for a new Flash app.',
    body: Scaffold(
      appBar: AppBar(title: 'Flash Example'),
      body: Container(
        padding: 24,
        child: Column(
          spacing: 16,
          crossAxis: CrossAxis.start,
          children: [
            Text(
              'Build FlutterFlow apps with Dart',
              style: Styles.headlineSmall,
            ),
            Text(
              'Flash keeps changes reviewable, repeatable, and ready for AI-assisted workflows.',
              style: Styles.bodyMedium,
              color: Colors.secondaryText,
            ),
            Button(
              'Show Snackbar',
              width: double.infinity,
              onTap: Snackbar('Flash is wired correctly.'),
            ),
          ],
        ),
      ),
    ),
  );
}

void main() {
  final app = buildApp(buildStarterApp);
  final pageNames = app.pages.map((page) => page.name).join(', ');

  stdout.writeln('Built a Flash app definition with ${app.pages.length} page(s).');
  stdout.writeln('Pages: $pageNames');
  stdout.writeln('');
  stdout.writeln('Next steps:');
  stdout.writeln(
    '  flash validate example/main.dart --project-name "Flash Example"',
  );
  stdout.writeln(
    '  flash run example/main.dart --project-name "Flash Example" --commit-message "Create starter app"',
  );
}
3
likes
130
points
30
downloads

Documentation

API reference

Publisher

verified publisherflutterflow.io

Weekly Downloads

Dart SDK for programmatically reading and modifying FlutterFlow projects. Built for the beta environment.

Homepage

Topics

#flutterflow #code-generation #sdk #ai-agents

License

unknown (license)

Dependencies

archive, collection, fixnum, http, meta, path, protobuf, yaml_edit

More

Packages that depend on flutterflow_flash_beta