Initial commit of Flutter project
This commit is contained in:
8
lib/helpers/shopid_helper.dart
Normal file
8
lib/helpers/shopid_helper.dart
Normal file
@@ -0,0 +1,8 @@
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:glowwheels/provider/shop_provider.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
|
||||
String? getShopId(BuildContext context) {
|
||||
return Provider.of<ShopProvider>(context, listen: false).shop?.user.id;
|
||||
}
|
||||
Reference in New Issue
Block a user