ui: Add a stubbed audio record button
This commit is contained in:
parent
bc52ec6fb9
commit
ac12d48ac0
@ -101,6 +101,25 @@ class ConversationBottomRow extends StatelessWidget {
|
|||||||
minWidth: 24,
|
minWidth: 24,
|
||||||
minHeight: 24,
|
minHeight: 24,
|
||||||
),
|
),
|
||||||
|
suffixIcon: state.messageText.isEmpty ?
|
||||||
|
InkWell(
|
||||||
|
child: const Padding(
|
||||||
|
padding: EdgeInsets.symmetric(horizontal: 8),
|
||||||
|
child: Icon(
|
||||||
|
Icons.mic_rounded,
|
||||||
|
color: primaryColor,
|
||||||
|
size: 24,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
onTap: () {
|
||||||
|
showNotImplementedDialog('audio recording', context);
|
||||||
|
},
|
||||||
|
) :
|
||||||
|
null,
|
||||||
|
suffixIconConstraints: const BoxConstraints(
|
||||||
|
minWidth: 24,
|
||||||
|
minHeight: 24,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
|
@ -10,7 +10,6 @@ class CustomTextField extends StatelessWidget {
|
|||||||
this.hintText,
|
this.hintText,
|
||||||
this.suffix,
|
this.suffix,
|
||||||
this.suffixText,
|
this.suffixText,
|
||||||
this.suffixIcon,
|
|
||||||
this.topWidget,
|
this.topWidget,
|
||||||
this.enabled = true,
|
this.enabled = true,
|
||||||
this.obscureText = false,
|
this.obscureText = false,
|
||||||
@ -28,6 +27,8 @@ class CustomTextField extends StatelessWidget {
|
|||||||
this.borderWidth,
|
this.borderWidth,
|
||||||
this.prefixIcon,
|
this.prefixIcon,
|
||||||
this.prefixIconConstraints,
|
this.prefixIconConstraints,
|
||||||
|
this.suffixIcon,
|
||||||
|
this.suffixIconConstraints,
|
||||||
this.onTap,
|
this.onTap,
|
||||||
this.shouldSummonKeyboard,
|
this.shouldSummonKeyboard,
|
||||||
Key? key,
|
Key? key,
|
||||||
@ -38,9 +39,10 @@ class CustomTextField extends StatelessWidget {
|
|||||||
final String? hintText;
|
final String? hintText;
|
||||||
final Widget? suffix;
|
final Widget? suffix;
|
||||||
final String? suffixText;
|
final String? suffixText;
|
||||||
final Widget? suffixIcon;
|
|
||||||
final Widget? prefixIcon;
|
final Widget? prefixIcon;
|
||||||
final BoxConstraints? prefixIconConstraints;
|
final BoxConstraints? prefixIconConstraints;
|
||||||
|
final Widget? suffixIcon;
|
||||||
|
final BoxConstraints? suffixIconConstraints;
|
||||||
final Widget? topWidget;
|
final Widget? topWidget;
|
||||||
final EdgeInsetsGeometry contentPadding;
|
final EdgeInsetsGeometry contentPadding;
|
||||||
final bool enabled;
|
final bool enabled;
|
||||||
@ -104,6 +106,7 @@ class CustomTextField extends StatelessWidget {
|
|||||||
hintStyle: style,
|
hintStyle: style,
|
||||||
prefixIcon: prefixIcon,
|
prefixIcon: prefixIcon,
|
||||||
prefixIconConstraints: prefixIconConstraints,
|
prefixIconConstraints: prefixIconConstraints,
|
||||||
|
suffixIconConstraints: suffixIconConstraints,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user