SelectableDeviceViewWidget constructor
SelectableDeviceViewWidget({
- Key? key,
- required String title,
- required int buttonId,
- required dynamic numButtons,
- required CLAIDModuleView deviceView,
- required Function onPressed,
Implementation
SelectableDeviceViewWidget({Key? key,
required this.title,
required this.buttonId,
required this.numButtons,
required this.deviceView, required this.onPressed}) : super(key: key)
{
print("initstate SelectableDeviceViewWidget constructor ${deviceView} ${identityHashCode(deviceView)}");
buttonStyle =
ElevatedButton.styleFrom(
textStyle: const TextStyle(fontSize: 20),
backgroundColor: interpolateColor(this.buttonId, this.numButtons),
shadowColor: Colors.black, // Color of the shadow
elevation: 10, // Elevation to create the shadow effect
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(9),
));
}