profile.dart 316 B

1234567891011121314
  1. import 'package:e2ee_chat/model/profile.dart';
  2. import 'package:flutter/cupertino.dart';
  3. import '../common/global.dart';
  4. class ProfileChangeNotifier extends ChangeNotifier {
  5. Profile get profile => Global.profile;
  6. @override
  7. void notifyListeners() {
  8. Global.saveProfile();
  9. super.notifyListeners();
  10. }
  11. }