AudioMessageViewStyle constructor
const
AudioMessageViewStyle({
- Decoration decoration = const BoxDecoration(borderRadius: BorderRadius.only(topLeft: Radius.circular(10), topRight: Radius.circular(10)), color: Color(0xffD0D8EB)),
- TextStyle durationTextStyle = const TextStyle(fontWeight: FontWeight.w300, color: Color(0xff455E93), fontSize: 8),
- SliderThemeData sliderThemeData = const SliderThemeData(thumbColor: Color(0xff7285B5), trackHeight: 2, activeTrackColor: Colors.white, inactiveTrackColor: Color(0xffAFB8D0), thumbShape: RoundSliderThumbShape(enabledThumbRadius: (10 / 2))),
- TextStyle timeTextStyle = const TextStyle(fontWeight: FontWeight.normal, color: Color(0xff455E93), fontSize: 11),
- DownloadUploadViewStyle downloadUploadViewStyle = const DownloadUploadViewStyle(decoration: BoxDecoration(border: Border.fromBorderSide(BorderSide(color: Color(0xffAFB8D0), width: 1.0)), borderRadius: BorderRadius.all(Radius.circular(3))), progressIndicatorThemeData: ProgressIndicatorThemeData(color: Color(0xff7285B5), linearTrackColor: Colors.transparent), iconStyle: IconStyle(iconColor: Color(0xff7285B5))),
- IconStyle iconStyle = const IconStyle(bgColor: Color(0xff97A5C7), iconColor: Colors.white),
Implementation
const AudioMessageViewStyle({
this.decoration = const BoxDecoration(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10), topRight: Radius.circular(10)),
color: Color(0xffD0D8EB)),
this.durationTextStyle = const TextStyle(
fontWeight: FontWeight.w300, color: Color(0xff455E93), fontSize: 8),
this.sliderThemeData = const SliderThemeData(
thumbColor: Color(0xff7285B5),
trackHeight: 2,
activeTrackColor: Colors.white,
inactiveTrackColor: Color(0xffAFB8D0),
// overlayShape: SliderComponentShape.noThumb,
thumbShape: RoundSliderThumbShape(enabledThumbRadius: (10 / 2)),
),
this.timeTextStyle = const TextStyle(
fontWeight: FontWeight.normal, color: Color(0xff455E93), fontSize: 11),
this.downloadUploadViewStyle = const DownloadUploadViewStyle(
decoration: BoxDecoration(
border: Border.fromBorderSide(
BorderSide(color: Color(0xffAFB8D0), width: 1.0)),
borderRadius: BorderRadius.all(Radius.circular(3)),
),
progressIndicatorThemeData: ProgressIndicatorThemeData(
color: Color(0xff7285B5), linearTrackColor: Colors.transparent),
iconStyle: IconStyle(iconColor: Color(0xff7285B5))),
this.iconStyle =
const IconStyle(bgColor: Color(0xff97A5C7), iconColor: Colors.white),
});