refactor badges
This commit is contained in:
parent
6523420120
commit
8d0eafae8a
5 changed files with 26 additions and 9 deletions
|
|
@ -1,10 +1,18 @@
|
|||
import "package:flutter/material.dart";
|
||||
import "package:flutter_riverpod/flutter_riverpod.dart";
|
||||
import "package:nexus/controllers/secure_storage_controller.dart";
|
||||
|
||||
class SettingsPage extends StatelessWidget {
|
||||
class SettingsPage extends ConsumerWidget {
|
||||
const SettingsPage({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(appBar: AppBar(title: Text("Settings")));
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: Text("Settings")),
|
||||
body: ElevatedButton(
|
||||
onPressed: ref.watch(SecureStorageController.provider.notifier).clear,
|
||||
child: Text("Log out"),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue