feat: splash page done
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:food_delivery_client/core/l10n/app_localizations.dart';
|
||||
import 'package:food_delivery_client/core/theme/app_theme_textstyles.dart';
|
||||
import 'package:food_delivery_client/core/theme/theme_icons.dart';
|
||||
|
||||
import '../../food_delivery_client.dart';
|
||||
|
||||
extension BuildContextExtensions on BuildContext {
|
||||
MediaQueryData get mq => MediaQuery.of(this);
|
||||
@@ -9,4 +11,11 @@ extension BuildContextExtensions on BuildContext {
|
||||
double get h => mq.size.height;
|
||||
|
||||
AppLocalizations get loc => AppLocalizations.of(this)!;
|
||||
|
||||
ThemeData get theme => Theme.of(this);
|
||||
|
||||
AppThemeIcons get appThemeIcons => theme.extension<AppThemeIcons>()!;
|
||||
|
||||
AppThemeTextStyles get appThemeTextStyles =>
|
||||
theme.extension<AppThemeTextStyles>()!;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user