fix
This commit is contained in:
18
lib/material/profile.dart
Normal file
18
lib/material/profile.dart
Normal file
@ -0,0 +1,18 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:momo/provider/token.dart';
|
||||
|
||||
class Profile extends ConsumerWidget {
|
||||
const Profile({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
return Center(
|
||||
child: ElevatedButton(
|
||||
onPressed: () {
|
||||
ref.watch(tokenProvider.notifier).removeToken();
|
||||
},
|
||||
child: const Text('quit')),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user