-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff6f88d
commit be79a5f
Showing
33 changed files
with
3,705 additions
and
238 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
This file contains 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
3 changes: 1 addition & 2 deletions
3
lib/core/utils/shared/components/widgets/custom_textfield.dart
This file contains 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
167 changes: 167 additions & 0 deletions
167
lib/core/utils/shared/components/widgets/custom_textform_field.dart
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
// import 'package:flutter/cupertino.dart'; | ||
// import 'package:flutter/material.dart'; | ||
// import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
// import 'package:get/get.dart'; | ||
// import 'package:mithraa_sports/core/config/styles/app_colors.dart'; | ||
// | ||
// extension TextFormFieldStyleHelper on CustomTextFormField{ | ||
// static OutlineInputBorder get OutlineGrayTL5 => OutlineInputBorder( | ||
// borderRadius: BorderRadius.circular(5.h), | ||
// borderSide: BorderSide( | ||
// color: AppColor.greyColor, | ||
// width: 1 | ||
// ), | ||
// ); | ||
// static OutlineInputBorder get fillWhiteA => OutlineInputBorder( | ||
// borderRadius: BorderRadius.circular(2.h), | ||
// borderSide: BorderSide.none, | ||
// ); | ||
// static OutlineInputBorder get outlineBlack => OutlineInputBorder( | ||
// borderRadius: BorderRadius.circular(5.h), | ||
// borderSide: BorderSide.none, | ||
// ); | ||
// } | ||
// | ||
// class CustomTextFormField extends StatelessWidget{ | ||
// CustomTextFormField( | ||
// {Key? Key, | ||
// this.alignment, | ||
// this.width, | ||
// this.scrollPadding, | ||
// this.controller, | ||
// this.focusNode, | ||
// this.autofocus=false, | ||
// this.textStyle, | ||
// this.obscureText=false, | ||
// this.textInputAction= TextInputAction.next, | ||
// this.textInputType= TextInputType.text, | ||
// this.maxLines, | ||
// this.hintText, | ||
// this.hintStyle, | ||
// this.prefix, | ||
// this.prefixConstraints, | ||
// this.suffix, | ||
// this.suffixConstraints, | ||
// this.contentPadding, | ||
// this.borderDecoration, | ||
// this.fillColor, | ||
// this.filled=true, | ||
// this.validator}) | ||
// :super( | ||
// key: key, | ||
// ); | ||
// final Alignment? alignment; | ||
// | ||
// final double? width; | ||
// | ||
// final TextEditingController? scrollPadding; | ||
// | ||
// final TextEditingController? controller; | ||
// | ||
// final FocusNode? focusNode; | ||
// | ||
// final bool? autofocus; | ||
// | ||
// final TextStyle? textStyle; | ||
// | ||
// final bool? obscureText; | ||
// | ||
// final TextInputAction? textInputAction; | ||
// | ||
// final TextInputType? textInputType; | ||
// | ||
// final int? maxLines; | ||
// | ||
// final String? hintText; | ||
// | ||
// final TextStyle? hintStyle; | ||
// | ||
// final Widget? prefix; | ||
// | ||
// final BoxConstraints? prefixConstraints; | ||
// | ||
// final Widget? suffix; | ||
// | ||
// final BoxConstraints? suffixConstraints; | ||
// | ||
// final EdgeInsets? contentPadding; | ||
// | ||
// final InputBorder? borderDecoration; | ||
// | ||
// final Color? fillColor; | ||
// | ||
// final bool? filled; | ||
// | ||
// final FormFieldValidator<String>? validator; | ||
// | ||
// @override | ||
// Widget build(BuildContext context) { | ||
// return alignment != null | ||
// ? Align( | ||
// alignment: alignment ?? Alignment.center, | ||
// child: textFormFieldWidget) | ||
// : textFormFieldWidget; | ||
// } | ||
// Widget get textFormFieldWidget => SizedBox( | ||
// width: width ?? double.maxFinite, | ||
// child: TextFormField( | ||
// scrollPadding: EdgeInsets.only( | ||
// bottom: MediaQuery.of(Get.context!).viewInsets.bottom), | ||
// controller: controller, | ||
// focusNode: focusNode, | ||
// onTapOutside: (event){ | ||
// if( focusNode != null){ | ||
// focusNode?.unfocus(); | ||
// } | ||
// else( | ||
// focusManager.instance.primaryFocus?.unfocus(), | ||
// ); | ||
// } | ||
// }, | ||
// autofocus: autofocus!, | ||
// style: textStyle ?? CustomTextStyle.labelLargePoppinsBluegray8009d, | ||
// obscureText: obscureText!, | ||
// textInputAction: textInputAction, | ||
// keyboardType: textInputType, | ||
// maxLines: maxLines ?? 1, | ||
// decoration: decoration, | ||
// validator: validator, | ||
// ), | ||
// ); | ||
// InputDecoration get decoration => InputDecoration( | ||
// hintText: hintText ??"", | ||
// hintStyle: hintStyle ?? CustomTextStyle.titleSmallWhiteA70001, | ||
// prefixIcon: prefix, | ||
// prefixIconConstraints: prefixConstraints, | ||
// suffixIcon: suffix, | ||
// suffixIconConstraints: suffixConstraints, | ||
// isDense: true, | ||
// contentPadding: contentPadding ?? EdgeInsets.all(12.h), | ||
// fillColor: fillColor ?? AppColor.whiteColor, | ||
// filled: filled, | ||
// border: borderDecoration ?? | ||
// OutlineInputBorder( | ||
// borderRadius: BorderRadius.circular(12.r), | ||
// borderSide: BorderSide( | ||
// color: AppColor.greyColor, | ||
// width: 1, | ||
// ), | ||
// ), | ||
// enabledBorder: borderDecoration ?? | ||
// OutlineInputBorder( | ||
// borderRadius: BorderRadius.circular(12.h), | ||
// borderSide: BorderSide( | ||
// color: AppColor.greyColor, | ||
// width: 1, | ||
// ), | ||
// ), | ||
// focusedBorder: borderDecoration ?? | ||
// OutlineInputBorder( | ||
// borderRadius: BorderRadius.circular(12.h), | ||
// borderSide: BorderSide( | ||
// color: AppColor.greyColor, | ||
// width: 1, | ||
// ), | ||
// ), | ||
// ); | ||
// } |
77 changes: 77 additions & 0 deletions
77
lib/core/utils/shared/components/widgets/line_chart_data.dart
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
import 'package:fl_chart/fl_chart.dart'; | ||
|
||
class LineData { | ||
final spots = const [ | ||
FlSpot(25, 21), | ||
FlSpot(35, 120), | ||
FlSpot(40, 83), | ||
FlSpot(50, 98), | ||
FlSpot(59, 23), | ||
FlSpot(64, 21), | ||
FlSpot(69, 18), | ||
FlSpot(74, 26), | ||
FlSpot(78, 22), | ||
FlSpot(83, 25), | ||
FlSpot(89, 16), | ||
FlSpot(95, 17), | ||
FlSpot(99, 19), | ||
FlSpot(103, 25), | ||
FlSpot(110, 120), | ||
FlSpot(125, 21), | ||
FlSpot(135, 120), | ||
FlSpot(140, 83), | ||
FlSpot(150, 98), | ||
FlSpot(159, 23), | ||
FlSpot(164, 21), | ||
FlSpot(169, 18), | ||
FlSpot(174, 26), | ||
FlSpot(178, 22), | ||
FlSpot(183, 25), | ||
FlSpot(189, 16), | ||
FlSpot(195, 17), | ||
FlSpot(199, 19), | ||
FlSpot(203, 25), | ||
FlSpot(210, 120), | ||
]; | ||
final leftTitle = { | ||
0: '0', | ||
20: '2k', | ||
40: '4k', | ||
60: '6k', | ||
80: '8k', | ||
100: '10k', | ||
}; | ||
final bottomTitle = { | ||
0: '1', | ||
10: '2', | ||
20: '3', | ||
30: '4', | ||
40: '5', | ||
50: '6', | ||
60: '7', | ||
70: '8', | ||
80: '9', | ||
90: '10', | ||
100: '11', | ||
110: '12', | ||
120: '13', | ||
130: '14', | ||
140: '15', | ||
150: '16', | ||
160: '17', | ||
170: '18', | ||
180: '19', | ||
190: '20', | ||
200: '21', | ||
210: '22', | ||
220: '23', | ||
230: '24', | ||
240: '25', | ||
250: '26', | ||
260: '27', | ||
270: '28', | ||
280: '29', | ||
290: '30', | ||
300: '31', | ||
}; | ||
} |
Oops, something went wrong.