MobileToolbar constructor
const
MobileToolbar({
- Key? key,
- required EditorState editorState,
- required List<
MobileToolbarItem> toolbarItems, - Color backgroundColor = Colors.white,
- Color foregroundColor = const Color(0xff676666),
- Color clearDiagonalLineColor = const Color(0xffB3261E),
- Color itemHighlightColor = const Color(0xff1F71AC),
- Color itemOutlineColor = const Color(0xFFE3E3E3),
- Color tabbarSelectedBackgroundColor = const Color(0x23808080),
- Color tabbarSelectedForegroundColor = Colors.black,
- Color primaryColor = const Color(0xff1F71AC),
- Color onPrimaryColor = Colors.white,
- Color outlineColor = const Color(0xFFE3E3E3),
- double toolbarHeight = 50.0,
- double borderRadius = 6.0,
- double buttonHeight = 40.0,
- double buttonSpacing = 8.0,
- double buttonBorderWidth = 1.0,
- double buttonSelectedBorderWidth = 2.0,
Implementation
const MobileToolbar({
super.key,
required this.editorState,
required this.toolbarItems,
// default MobileToolbarStyle parameters
this.backgroundColor = Colors.white,
this.foregroundColor = const Color(0xff676666),
this.clearDiagonalLineColor = const Color(0xffB3261E),
this.itemHighlightColor = const Color(0xff1F71AC),
this.itemOutlineColor = const Color(0xFFE3E3E3),
this.tabbarSelectedBackgroundColor = const Color(0x23808080),
this.tabbarSelectedForegroundColor = Colors.black,
this.primaryColor = const Color(0xff1F71AC),
this.onPrimaryColor = Colors.white,
this.outlineColor = const Color(0xFFE3E3E3),
this.toolbarHeight = 50.0,
this.borderRadius = 6.0,
this.buttonHeight = 40.0,
this.buttonSpacing = 8.0,
this.buttonBorderWidth = 1.0,
this.buttonSelectedBorderWidth = 2.0,
});