import 'package:flutter/foundation.dart'; import 'package:robo_advisory/models/user.dart'; class UserProvider with ChangeNotifier { User _user = User.noUser; int _selectedTabIndex = 0; List _categories = ["Workplace", "Equipment", "Home", "Other"]; List get categories => _categories; User get user => _user; int get selectedTabIndex => _selectedTabIndex; void setSelectedTabIndex(int index) { _selectedTabIndex = index; notifyListeners(); } void setUser(User user) { _user = user; notifyListeners(); } }