mangayomi/lib/modules/more/about/providers/get_package_info.dart
kodjomoustapha 3f54459f65 refactor
2024-05-27 13:10:02 +01:00

8 lines
278 B
Dart

import 'package:package_info_plus/package_info_plus.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
part 'get_package_info.g.dart';
@riverpod
Future<PackageInfo> getPackageInfo(GetPackageInfoRef ref) async {
return (await PackageInfo.fromPlatform());
}