TextBar constructor
TextBar({
- Color text_color = Colors.black,
- dynamic onChanged,
- bool autoCorrect = false,
- bool blindMode = false,
- String? speaker_language = 'en-IN',
- double volume = 0.5,
- double voice_pitch = 1.0,
- double rate = 0.5,
- Color speaker_highlight_color = Colors.red,
- bool voiceToTextMode = false,
- Icon voice_button_icon = const Icon(Icons.mic),
- Key? key,
- dynamic controller,
- dynamic focusNode,
- InputDecoration decoration = const InputDecoration(),
- TextInputType? keyboardType,
- dynamic textInputAction,
- TextCapitalization textCapitalization = TextCapitalization.none,
- dynamic style,
- dynamic strutStyle,
- TextAlign textAlign = TextAlign.start,
- dynamic textAlignVertical,
- dynamic textDirection,
- bool readOnly = false,
- ToolbarOptions? toolbarOptions,
- dynamic showCursor,
- bool autofocus = false,
- String obscuringCharacter = '•',
- bool obscureText = false,
- bool autocorrect = true,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool enableSuggestions = true,
- int maxLines = 1,
- dynamic minLines,
- bool expands = false,
- dynamic maxLength,
- dynamic maxLengthEnforcement,
- dynamic onEditingComplete,
- dynamic onSubmitted,
- dynamic onAppPrivateCommand,
- dynamic inputFormatters,
- dynamic enabled,
- double cursorWidth = 2.0,
- dynamic cursorHeight,
- dynamic cursorRadius,
- dynamic cursorColor,
- BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
- BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
- dynamic keyboardAppearance,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool enableInteractiveSelection = true,
- dynamic onTap,
- dynamic mouseCursor,
- dynamic buildCounter,
- dynamic scrollController,
- dynamic scrollPhysics,
- dynamic autofillHints,
- dynamic specialTextSpanBuilder,
- dynamic selectionControls,
- dynamic restorationId,
Implementation
TextBar({this.text_color = Colors.black , this.onChanged ,this.autoCorrect = false ,
this.blindMode = false , this.speaker_language = 'en-IN' , this.volume = 0.5 , this.voice_pitch = 1.0 , this.rate = 0.5 , this.speaker_highlight_color = Colors.red ,
this.voiceToTextMode = false , this.voice_button_icon = const Icon(Icons.mic),
Key? key,
this.controller,
this.focusNode,
this.decoration = const InputDecoration(),
TextInputType? keyboardType,
this.textInputAction,
this.textCapitalization = TextCapitalization.none,
this.style,
this.strutStyle,
this.textAlign = TextAlign.start,
this.textAlignVertical,
this.textDirection,
this.readOnly = false,
ToolbarOptions? toolbarOptions,
this.showCursor,
this.autofocus = false,
this.obscuringCharacter = '•',
this.obscureText = false,
this.autocorrect = true,
SmartDashesType? smartDashesType,
SmartQuotesType? smartQuotesType,
this.enableSuggestions = true,
this.maxLines = 1,
this.minLines,
this.expands = false,
this.maxLength,
this.maxLengthEnforcement,
this.onEditingComplete,
this.onSubmitted,
this.onAppPrivateCommand,
this.inputFormatters,
this.enabled,
this.cursorWidth = 2.0,
this.cursorHeight,
this.cursorRadius,
this.cursorColor,
this.selectionHeightStyle = ui.BoxHeightStyle.tight,
this.selectionWidthStyle = ui.BoxWidthStyle.tight,
this.keyboardAppearance,
this.scrollPadding = const EdgeInsets.all(20.0),
this.dragStartBehavior = DragStartBehavior.start,
this.enableInteractiveSelection = true,
this.onTap,
this.mouseCursor,
this.buildCounter,
this.scrollController,
this.scrollPhysics,
this.autofillHints,
this.specialTextSpanBuilder,
this.selectionControls,
this.restorationId,
});