wip: add easy_localization.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
extension ContextExtension on BuildContext {
|
||||
ThemeData get t => Theme.of(this);
|
||||
|
||||
NavigatorState get n => Navigator.of(this);
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
extension StringNotNull on String? {
|
||||
bool get notNull => this != null && this != '';
|
||||
}
|
||||
Reference in New Issue
Block a user