profile.dart 318 B

123456789101112131415
  1. import 'package:e2ee_chat/common/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. }