mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-07-17 23:54:08 +00:00
use normal font
This commit is contained in:
parent
7a8901cd2d
commit
cec25675c3
2 changed files with 4 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ class MyInput extends StatefulWidget {
|
|||
this.obscureText = false,
|
||||
this.dense = false,
|
||||
this.readOnly = false,
|
||||
this.fontWeight,
|
||||
super.key,
|
||||
});
|
||||
|
||||
|
|
@ -35,6 +36,7 @@ class MyInput extends StatefulWidget {
|
|||
final bool obscureText;
|
||||
final bool dense;
|
||||
final bool readOnly;
|
||||
final FontWeight? fontWeight;
|
||||
|
||||
@override
|
||||
State<MyInput> createState() => _MyInputState();
|
||||
|
|
@ -106,7 +108,7 @@ class _MyInputState extends State<MyInput> {
|
|||
obscureText: widget.obscureText,
|
||||
style: TextStyle(
|
||||
fontSize: widget.dense ? 16 : 18,
|
||||
fontWeight: FontWeight.w500,
|
||||
fontWeight: widget.fontWeight ?? FontWeight.w500,
|
||||
color: isDark ? Colors.white : Colors.black87,
|
||||
),
|
||||
decoration: InputDecoration(
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ class MediaViewerMessageInput extends StatelessWidget {
|
|||
child: MyInput(
|
||||
dense: true,
|
||||
autofocus: true,
|
||||
fontWeight: FontWeight.normal,
|
||||
controller: controller,
|
||||
hintText: context.lang.chatListDetailInput,
|
||||
onChanged: (value) {},
|
||||
|
|
|
|||
Loading…
Reference in a new issue