This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:nexlead/utils/extensions.dart'; | |
| class AppTextField extends StatefulWidget { | |
| final TextEditingController controller; | |
| final String? hintText; | |
| final Widget? prefixIcon; | |
| final Widget? suffixIcon; | |
| const AppTextField({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/cupertino.dart'; | |
| class AppText extends StatelessWidget { | |
| final String title; | |
| final double fontSize; | |
| final FontWeight fontWeight; | |
| final Color? titleColor; | |
| final TextAlign? textAlign; | |
| final TextOverflow? overflow; // Added overflow parameter | |
| final int? maxLines; // Added maxLines parameter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/widgets.dart'; | |
| class Dimens { | |
| // Private constructor to prevent instantiation | |
| Dimens._(); | |
| // Base design size (adjust to your design - common sizes: 375x812, 414x896) | |
| static const double baseWidth = 375.0; | |
| static const double baseHeight = 812.0; |