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,
|
||||
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(
|
||||
|
@ -10,7 +10,6 @@ class CustomTextField extends StatelessWidget {
|
||||
this.hintText,
|
||||
this.suffix,
|
||||
this.suffixText,
|
||||
this.suffixIcon,
|
||||
this.topWidget,
|
||||
this.enabled = true,
|
||||
this.obscureText = false,
|
||||
@ -28,6 +27,8 @@ class CustomTextField extends StatelessWidget {
|
||||
this.borderWidth,
|
||||
this.prefixIcon,
|
||||
this.prefixIconConstraints,
|
||||
this.suffixIcon,
|
||||
this.suffixIconConstraints,
|
||||
this.onTap,
|
||||
this.shouldSummonKeyboard,
|
||||
Key? key,
|
||||
@ -38,9 +39,10 @@ class CustomTextField extends StatelessWidget {
|
||||
final String? hintText;
|
||||
final Widget? suffix;
|
||||
final String? suffixText;
|
||||
final Widget? suffixIcon;
|
||||
final Widget? prefixIcon;
|
||||
final BoxConstraints? prefixIconConstraints;
|
||||
final Widget? suffixIcon;
|
||||
final BoxConstraints? suffixIconConstraints;
|
||||
final Widget? topWidget;
|
||||
final EdgeInsetsGeometry contentPadding;
|
||||
final bool enabled;
|
||||
@ -104,6 +106,7 @@ class CustomTextField extends StatelessWidget {
|
||||
hintStyle: style,
|
||||
prefixIcon: prefixIcon,
|
||||
prefixIconConstraints: prefixIconConstraints,
|
||||
suffixIconConstraints: suffixIconConstraints,
|
||||
),
|
||||
)
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user