Skip to content

Commit 7b4cd80

Browse files
Default resolution added
1 parent 9455495 commit 7b4cd80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/bloc/image_cubit.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ class ImageCubit extends Cubit<ImageState> {
1010
ImageCubit() : super(ImageInitial());
1111
final AI _ai = AI();
1212

13-
Future<void> generate(String query, AIStyle style) async {
13+
Future<void> generate(String query, AIStyle style, Resolution resolution) async {
1414
emit(ImageLoading());
1515
try {
16-
Uint8List image = await _ai.runAI(query, style);
16+
Uint8List image = await _ai.runAI(query, style, resolution);
1717
emit(ImageLoaded(image: image));
1818
} catch (_) {
1919
emit(const ImageError(error: 'There is error . Try Again Later'));

0 commit comments

Comments
 (0)