infoButton static method
Implementation
static Widget infoButton(
{required String popContentId, required String info}) =>
Padding(
padding: const EdgeInsets.only(right: 8.0),
child: SInkButton(
onTap: (pos) => PopOverlay.addPop(PopOverlayContent(
id: "info_$popContentId",
dismissBarrierColor: Colors.black.withValues(alpha: 0.8),
widget: Align(
alignment: Alignment.centerLeft,
child: Padding(
padding: const EdgeInsets.only(left: 20.0),
child: Text(
info,
style: TextStyle(
color: Colors.black,
fontSize: 12,
fontWeight: FontWeight.normal,
),
),
),
),
frameDesign: FrameDesign(
title: "Info",
showCloseButton: true,
showBottomButtonBar: false,
titleBarHeight: 30,
height: 100,
width: 300,
),
)),
child: Icon(
Icons.info,
color: Colors.blue[100],
),
),
);