Load server configuration
This commit is contained in:
14
moneymgr_mobile/lib/routes/profile/profile_screen.dart
Normal file
14
moneymgr_mobile/lib/routes/profile/profile_screen.dart
Normal file
@ -0,0 +1,14 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:moneymgr_mobile/services/storage/prefs.dart';
|
||||
|
||||
class ProfileScreen extends HookConsumerWidget {
|
||||
const ProfileScreen({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final data = ref.watch(prefsProvider);
|
||||
if (data.value == null) return CircularProgressIndicator();
|
||||
return Text("dd\n\n\n${data.value!.serverConfig()}");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user