mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-07-18 02:24:07 +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.obscureText = false,
|
||||||
this.dense = false,
|
this.dense = false,
|
||||||
this.readOnly = false,
|
this.readOnly = false,
|
||||||
|
this.fontWeight,
|
||||||
super.key,
|
super.key,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -35,6 +36,7 @@ class MyInput extends StatefulWidget {
|
||||||
final bool obscureText;
|
final bool obscureText;
|
||||||
final bool dense;
|
final bool dense;
|
||||||
final bool readOnly;
|
final bool readOnly;
|
||||||
|
final FontWeight? fontWeight;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<MyInput> createState() => _MyInputState();
|
State<MyInput> createState() => _MyInputState();
|
||||||
|
|
@ -106,7 +108,7 @@ class _MyInputState extends State<MyInput> {
|
||||||
obscureText: widget.obscureText,
|
obscureText: widget.obscureText,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: widget.dense ? 16 : 18,
|
fontSize: widget.dense ? 16 : 18,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: widget.fontWeight ?? FontWeight.w500,
|
||||||
color: isDark ? Colors.white : Colors.black87,
|
color: isDark ? Colors.white : Colors.black87,
|
||||||
),
|
),
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ class MediaViewerMessageInput extends StatelessWidget {
|
||||||
child: MyInput(
|
child: MyInput(
|
||||||
dense: true,
|
dense: true,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
|
fontWeight: FontWeight.normal,
|
||||||
controller: controller,
|
controller: controller,
|
||||||
hintText: context.lang.chatListDetailInput,
|
hintText: context.lang.chatListDetailInput,
|
||||||
onChanged: (value) {},
|
onChanged: (value) {},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue