Add Supa account and search changes
This commit is contained in:
1 parent
3a19865b2e
commit
51289f1266
374 files changed
+54061
-5013
No files matched your search
@@ -31,15 +31,18 @@ class BrowserIcon with FastEquatable {
|
||||
final Color? dominantColor;
|
||||
final IconSource source;
|
||||
|
||||
static Future<BrowserIcon> fromBytes(
|
||||
static Future<BrowserIcon?> fromBytes(
|
||||
Uint8List bytes, {
|
||||
required Color? dominantColor,
|
||||
required IconSource source,
|
||||
}) async {
|
||||
final image = await tryDecodeImage(bytes);
|
||||
if (image == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return BrowserIcon(
|
||||
image: image!,
|
||||
image: image,
|
||||
dominantColor: dominantColor,
|
||||
source: source,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user