mirror of
https://bitbucket.org/myhomie/myhomie_app.git
synced 2025-12-06 00:51:19 +00:00
19 lines
391 B
Dart
19 lines
391 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:myhomie_app/client.dart';
|
|
|
|
import 'Models/homieContext.dart';
|
|
|
|
class AppContext with ChangeNotifier {
|
|
HomieAppContext _homieContext;
|
|
Client clientAPI;
|
|
|
|
AppContext(this._homieContext);
|
|
|
|
getContext() => _homieContext;
|
|
setContext(HomieAppContext appContext) async {
|
|
_homieContext = appContext;
|
|
|
|
notifyListeners();
|
|
}
|
|
}
|