import 'package:flutter/material.dart'; import '../models/AboutUsItem_model.dart'; import '../services/AboutUsService.dart'; class AboutUsProvider extends ChangeNotifier { final AboutUsService _service = AboutUsService(); List _items = []; bool _isLoading = false; List get items => _items; bool get isLoading => _isLoading; Future loadAboutUs() async { _isLoading = true; notifyListeners(); try { _items = await _service.fetchAboutUs(); } catch (e) { _items = []; } _isLoading = false; notifyListeners(); } }