mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 08:31:19 +00:00
16 lines
355 B
Dart
16 lines
355 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:tablet_app/Models/tabletContext.dart';
|
|
|
|
class AppContext with ChangeNotifier {
|
|
TabletAppContext? _tabletContext;
|
|
|
|
AppContext(this._tabletContext);
|
|
|
|
getContext() => _tabletContext;
|
|
setContext(TabletAppContext appContext) async {
|
|
_tabletContext = appContext;
|
|
|
|
notifyListeners();
|
|
}
|
|
}
|