fix: ultra-fake orders
This commit is contained in:
@@ -6,6 +6,7 @@ import 'package:gymlink_module_web/main_mobile.dart';
|
||||
import 'package:gymlink_module_web/providers/main.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
void main() {
|
||||
runApp(const MyExampleApp());
|
||||
@@ -250,8 +251,16 @@ class ExampleSecondPage extends StatelessWidget {
|
||||
title: const Text('GymLink Example App'),
|
||||
),
|
||||
drawer: getDrawer(context),
|
||||
body: const Center(
|
||||
child: Text('Example page'),
|
||||
body: Center(
|
||||
child: TextButton(
|
||||
onPressed: () async {
|
||||
final prefs = await SharedPreferences.getInstance();
|
||||
prefs.remove('token');
|
||||
prefs.remove('history');
|
||||
prefs.remove('cart');
|
||||
prefs.remove('detail_history');
|
||||
},
|
||||
child: const Text('Clear')),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user