-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: reorg package exports * chore: move model types from main * chore: update changelog
- Loading branch information
Showing
19 changed files
with
75 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
class TextToImageResult { | ||
final List<ImageRef> images; | ||
final int seed; | ||
|
||
TextToImageResult({required this.images, required this.seed}); | ||
|
||
factory TextToImageResult.fromMap(Map<String, dynamic> json) { | ||
return TextToImageResult( | ||
images: (json['images'] as List<dynamic>) | ||
.map((e) => ImageRef.fromMap(e as Map<String, dynamic>)) | ||
.toList(), | ||
seed: (json['seed'] * 1).round(), | ||
); | ||
} | ||
} | ||
|
||
class ImageRef { | ||
final String url; | ||
final int height; | ||
final int width; | ||
|
||
ImageRef({required this.url, required this.height, required this.width}); | ||
|
||
factory ImageRef.fromMap(Map<String, dynamic> json) { | ||
return ImageRef( | ||
url: json['url'], | ||
height: (json['height'] * 1).round(), | ||
width: (json['width'] * 1).round(), | ||
); | ||
} | ||
} | ||
|
||
const textToImageId = '110602490-lora'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export 'src/client.dart'; | ||
export 'src/config.dart'; | ||
export 'src/exception.dart'; | ||
export 'src/queue.dart'; | ||
export 'src/storage.dart'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
library fal_client; | ||
|
||
import './config.dart'; | ||
import './exception.dart'; | ||
import './http.dart'; | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Note: temporary solution, should be replaced with something | ||
// else that resolves the package version at build-time or runtime. | ||
const packageVersion = '0.2.1'; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters