mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-16 15:16:15 +08:00
mod: 无障碍语义适配
This commit is contained in:
@@ -3,10 +3,12 @@ import 'package:flutter/material.dart';
|
||||
class ComBtn extends StatelessWidget {
|
||||
final Widget? icon;
|
||||
final Function? fuc;
|
||||
final String tooltip;
|
||||
|
||||
const ComBtn({
|
||||
this.icon,
|
||||
this.fuc,
|
||||
required this.tooltip,
|
||||
super.key,
|
||||
});
|
||||
|
||||
@@ -16,6 +18,7 @@ class ComBtn extends StatelessWidget {
|
||||
width: 34,
|
||||
height: 34,
|
||||
child: IconButton(
|
||||
tooltip: tooltip,
|
||||
style: ButtonStyle(
|
||||
padding: MaterialStateProperty.all(EdgeInsets.zero),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user