wip: add easy_localization.

This commit is contained in:
2021-09-23 18:40:12 +08:00
parent aa2454553c
commit aa2f50233f
14 changed files with 160 additions and 95 deletions
@@ -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);
}
+3
View File
@@ -0,0 +1,3 @@
extension StringNotNull on String? {
bool get notNull => this != null && this != '';
}