refactor badges

This commit is contained in:
Henry Hiles 2025-11-28 15:51:43 -05:00
commit 8d0eafae8a
No known key found for this signature in database
5 changed files with 26 additions and 9 deletions

View file

@ -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"),
),
);
}
}