mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-19 13:26:04 +00:00
14 lines
414 B
Dart
14 lines
414 B
Dart
import 'dart:convert';
|
|
|
|
import 'package:flutter/services.dart';
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
|
|
part 'immich_logo_provider.g.dart';
|
|
|
|
@riverpod
|
|
Future<Uint8List> immichLogo(Ref ref) async {
|
|
final json = await rootBundle.loadString('assets/immich-logo.json');
|
|
final j = jsonDecode(json);
|
|
return base64Decode(j['content']);
|
|
}
|