SelectableDeviceViewWidget constructor

SelectableDeviceViewWidget({
  1. Key? key,
  2. required String title,
  3. required int buttonId,
  4. required dynamic numButtons,
  5. required CLAIDModuleView deviceView,
  6. 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),
    ));
}