MobileToolbar constructor

const MobileToolbar({
  1. Key? key,
  2. required EditorState editorState,
  3. required List<MobileToolbarItem> toolbarItems,
  4. Color backgroundColor = Colors.white,
  5. Color foregroundColor = const Color(0xff676666),
  6. Color clearDiagonalLineColor = const Color(0xffB3261E),
  7. Color itemHighlightColor = const Color(0xff1F71AC),
  8. Color itemOutlineColor = const Color(0xFFE3E3E3),
  9. Color tabbarSelectedBackgroundColor = const Color(0x23808080),
  10. Color tabbarSelectedForegroundColor = Colors.black,
  11. Color primaryColor = const Color(0xff1F71AC),
  12. Color onPrimaryColor = Colors.white,
  13. Color outlineColor = const Color(0xFFE3E3E3),
  14. double toolbarHeight = 50.0,
  15. double borderRadius = 6.0,
  16. double buttonHeight = 40.0,
  17. double buttonSpacing = 8.0,
  18. double buttonBorderWidth = 1.0,
  19. 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,
});