add slide to stock and cleanup

This commit is contained in:
Patrick Alvin Alcala 2025-04-04 10:11:48 +08:00
parent b892cc485f
commit 1222f15766
5 changed files with 17 additions and 39 deletions

View file

@ -1,5 +1,3 @@
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:gap/gap.dart';
@ -65,24 +63,6 @@ class _MainPageState extends State<MainPage> {
}
}
// void _getList() async {
// _categoryList = await _refCategories.getList();
// if (_categoryList.isEmpty) {
// if (mounted) {
// showNotification(context, 'Error: No Categories Found', false);
// WidgetsBinding.instance.addPostFrameCallback((_) {
// if (mounted) {
// context.push('/main');
// }
// });
// }
// } else {
// setState(() => {});
// }
// }
Future<void> _getCategoryListCache() async {
final categoryList = await _refCategories.getList();