You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
447 B
14 lines
447 B
import 'package:dde_gesture_manager/models/configs.provider.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:dde_gesture_manager/extensions.dart';
|
|
|
|
extension ContextExtension on BuildContext {
|
|
ThemeData get t => Theme.of(this);
|
|
|
|
NavigatorState get n => Navigator.of(this);
|
|
|
|
bool get hasToken => this.read<ConfigsProvider>().accessToken.notNull;
|
|
|
|
bool get watchHasToken => this.watch<ConfigsProvider>().accessToken.notNull;
|
|
}
|