You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.7 KiB
57 lines
1.7 KiB
import 'package:flutter/material.dart';
|
|
import 'package:sonnat/core/extensions/context_extension.dart';
|
|
import 'package:sonnat/core/language/translator.dart';
|
|
import 'package:sonnat/core/utils/app_constants.dart';
|
|
|
|
class AuthorCommentWidget extends StatefulWidget {
|
|
final TextEditingController controller;
|
|
|
|
const AuthorCommentWidget({super.key, required this.controller});
|
|
|
|
@override
|
|
State<AuthorCommentWidget> createState() => _AuthorCommentWidgetState();
|
|
}
|
|
|
|
class _AuthorCommentWidgetState extends State<AuthorCommentWidget> {
|
|
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SizedBox(
|
|
height: 49 * context.height / AppConstants.instance.appHeight,
|
|
child: TextFormField(
|
|
autofocus: false,
|
|
maxLength: 300,
|
|
controller: widget.controller,
|
|
maxLines: 10,
|
|
minLines: 4,
|
|
style: const TextStyle(
|
|
color: Color(0xff8D95AB),
|
|
fontSize: 10,
|
|
),
|
|
decoration: InputDecoration(
|
|
fillColor: Colors.transparent,
|
|
contentPadding: const EdgeInsets.symmetric(
|
|
vertical: 15,
|
|
horizontal: 18,
|
|
),
|
|
hintText: Translator.translate('full_name'),
|
|
filled: true,
|
|
counterText: '',
|
|
hintStyle: const TextStyle(
|
|
color: Color(0xff8D95AB),
|
|
fontSize: 10,
|
|
),
|
|
enabledBorder: OutlineInputBorder(
|
|
borderRadius: BorderRadius.circular(19),
|
|
borderSide: const BorderSide(color: Color(0xff636E88)),
|
|
),
|
|
focusedBorder: OutlineInputBorder(
|
|
borderRadius: BorderRadius.circular(19),
|
|
borderSide: const BorderSide(color: Color(0xff636E88)),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|