ZegoCallTopMenuBarConfig class
Configuration options for the top menu bar (toolbar). You can use the ZegoUIKitPrebuiltCallConfig.topMenuBar property to set the properties inside this class.
Constructors
-
ZegoCallTopMenuBarConfig({bool isVisible = true, String title = '', bool hideAutomatically = true, bool hideByClick = true, List<
ZegoCallMenuBarButtonName> buttons = const [], List<Widget> extendButtons = const [], ZegoCallMenuBarStyle style = ZegoCallMenuBarStyle.light, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, Color? backgroundColor, double? height})
Properties
- backgroundColor ↔ Color?
-
background color for the top menu bar.
getter/setter pair
-
Buttons displayed on the menu bar. The buttons will be arranged in the order specified in the list.
getter/setter pair
-
extendButtons
↔ List<
Widget> -
Extension buttons that allow you to add your own buttons to the top toolbar.
These buttons will be added to the menu bar in the specified order.
If the limit of
3
is exceeded, additional buttons will be automatically added to the overflow menu.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ double?
-
height for the top menu bar.
getter/setter pair
- hideAutomatically ↔ bool
-
Whether to automatically collapse the top menu bar after 5 seconds of inactivity.
getter/setter pair
- hideByClick ↔ bool
-
Whether to collapse the top menu bar when clicking on the blank area.
getter/setter pair
- isVisible ↔ bool
-
Whether to display the top menu bar.
getter/setter pair
- margin ↔ EdgeInsetsGeometry?
-
margin for the top menu bar.
getter/setter pair
- padding ↔ EdgeInsetsGeometry?
-
padding for the top menu bar.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style ↔ ZegoCallMenuBarStyle
-
Style of the top menu bar.
getter/setter pair
- title ↔ String
-
Title of the top menu bar.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited