flutter_stable_diffusion 1.0.0+2 copy "flutter_stable_diffusion: ^1.0.0+2" to clipboard
flutter_stable_diffusion: ^1.0.0+2 copied to clipboard

A Flutter plugin for generate 'Stable Diffusion' image.

example/lib/main.dart

import 'package:dio/dio.dart';
import 'package:flutter_stable_diffusion_example/src/app.dart';

import 'src/services/logging.dart';
import 'src/services/model_service.dart';
import 'src/services/model_stroage_service.dart';

void main() {
  var builder = AppBuilder();
  builder.addSingleton((serviceProvider) => ModelService());
  builder.addSingleton((serviceProvider) => ModelStroageService(), initializeWhenServiceProviderBuilt: true);
  builder.addSingleton((serviceProvider) => Logging());
  builder.addSingleton((serviceProvider) => Dio());
  var app = builder.buildApp();
  app.run();
}