|
|
@ -1,8 +1,8 @@
|
|
|
|
|
|
|
|
import 'package:ansu_ui/extension/num_extension.dart';
|
|
|
|
|
|
|
|
import 'package:ansu_ui/styles/as_colors.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import 'package:ansu_ui/styles/as_colors.dart';
|
|
|
|
|
|
|
|
import 'package:ansu_ui/extension/num_extension.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ASEditTile extends StatelessWidget {
|
|
|
|
class ASEditTile extends StatelessWidget {
|
|
|
|
final Widget? title;
|
|
|
|
final Widget? title;
|
|
|
@ -17,6 +17,8 @@ class ASEditTile extends StatelessWidget {
|
|
|
|
final Widget? suffix;
|
|
|
|
final Widget? suffix;
|
|
|
|
final bool? obscureText;
|
|
|
|
final bool? obscureText;
|
|
|
|
final String? obscuringCharacter;
|
|
|
|
final String? obscuringCharacter;
|
|
|
|
|
|
|
|
final bool enableEdit;
|
|
|
|
|
|
|
|
|
|
|
|
ASEditTile({
|
|
|
|
ASEditTile({
|
|
|
|
Key? key,
|
|
|
|
Key? key,
|
|
|
|
this.title,
|
|
|
|
this.title,
|
|
|
@ -31,7 +33,9 @@ class ASEditTile extends StatelessWidget {
|
|
|
|
this.suffix,
|
|
|
|
this.suffix,
|
|
|
|
this.obscureText,
|
|
|
|
this.obscureText,
|
|
|
|
this.obscuringCharacter,
|
|
|
|
this.obscuringCharacter,
|
|
|
|
|
|
|
|
this.enableEdit=true,
|
|
|
|
}) : super(key: key);
|
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return ConstrainedBox(
|
|
|
|
return ConstrainedBox(
|
|
|
@ -56,6 +60,7 @@ class ASEditTile extends StatelessWidget {
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: TextField(
|
|
|
|
child: TextField(
|
|
|
|
controller: controller,
|
|
|
|
controller: controller,
|
|
|
|
|
|
|
|
enabled: enableEdit,
|
|
|
|
onChanged: onChange,
|
|
|
|
onChanged: onChange,
|
|
|
|
inputFormatters: inputFormatters,
|
|
|
|
inputFormatters: inputFormatters,
|
|
|
|
keyboardType: keyBoardType,
|
|
|
|
keyboardType: keyBoardType,
|
|
|
|