batchWidget static method
Implementation
static Widget batchWidget({required Widget widget, required String? remark}) {
double size = 20.0;
return Stack(
clipBehavior: Clip.none,
children: [
widget,
if (remark != null && remark != '')
Positioned(
top: -25,
right: -30,
child: Tooltip(
message: remark,
onTriggered: () {
OtherFunctions.hideKeyboard();
},
child: Container(
height: 50,
width: 70,
//color: Colors.black,
padding: const EdgeInsets.all(15.0),
child: Image.asset(
'assets/info.png',
gaplessPlayback: true,
width: size,
height: size,
errorBuilder: (context, error, stackTrace) {
return Icon(
Icons.info,
size: size,
color: Colors.redAccent,
);
},
),
),
),
),
],
);
}