mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +00:00
c1253663b7
* refactor(mobile): services and provider * providers
13 lines
371 B
Dart
13 lines
371 B
Dart
import 'dart:convert';
|
|
|
|
import 'package:flutter/services.dart';
|
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
|
|
part 'immich_logo_provider.g.dart';
|
|
|
|
@riverpod
|
|
Future<Uint8List> immichLogo(ImmichLogoRef ref) async {
|
|
final json = await rootBundle.loadString('assets/immich-logo.json');
|
|
final j = jsonDecode(json);
|
|
return base64Decode(j['content']);
|
|
}
|