initial code

This commit is contained in:
2025-01-21 18:29:27 +05:30
commit 9fee5eb24d
191 changed files with 11603 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
// ignore_for_file: file_names
import 'package:flutter/material.dart';
extension CustomUITheme on BuildContext {
TextStyle customLight(Color color, double fontSize) {
return TextStyle(fontWeight: FontWeight.w300, color: color, fontSize: fontSize, fontFamily: 'Nunito');
}
TextStyle customBold(Color color, double fontSize) {
return TextStyle(fontWeight: FontWeight.w700, color: color, fontSize: fontSize, fontFamily: 'Nunito');
}
TextStyle customRegular(Color color, double fontSize) {
return TextStyle(fontWeight: FontWeight.w400, color: color, fontSize: fontSize, fontFamily: 'Nunito');
}
TextStyle customMedium(Color color, double fontSize) {
return TextStyle(fontWeight: FontWeight.w500, color: color, fontSize: fontSize, fontFamily: 'Nunito');
}
TextStyle customSemiBold(Color color, double fontSize) {
return TextStyle(fontWeight: FontWeight.w600, color: color, fontSize: fontSize, fontFamily: 'Nunito');
}
TextStyle customExtraBold(Color color, double fontSize) {
return TextStyle(fontWeight: FontWeight.w800, color: color, fontSize: fontSize, fontFamily: 'Nunito');
}
double screenWidth() {
return MediaQuery.sizeOf(this).width;
}
double screenHeight() {
return MediaQuery.sizeOf(this).height;
}
EdgeInsets get bodyPadding {
return const EdgeInsets.only(left: 15, right: 15);
}
EdgeInsets get bodyLeftOnly {
return const EdgeInsets.only(left: 15);
}
EdgeInsets get bodyAllPadding {
return const EdgeInsets.all(15);
}
}