cm tabs add tooltips and selected color

This commit is contained in:
csf
2022-10-20 23:56:23 +09:00
parent 6e6a359809
commit ee744d7de3
2 changed files with 71 additions and 36 deletions

View File

@@ -126,6 +126,20 @@ class ConnectionManagerState extends State<ConnectionManager> {
controller: serverModel.tabController,
maxLabelWidth: 100,
tail: buildScrollJumper(),
selectedTabBackgroundColor:
Theme.of(context).hintColor.withOpacity(0.2),
tabBuilder: (key, icon, label, themeConf) {
return Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
icon,
Tooltip(
message: key,
waitDuration: Duration(seconds: 1),
child: label),
],
);
},
pageViewBuilder: (pageView) => Row(children: [
Expanded(child: pageView),
Consumer<ChatModel>(