artur-ios-dev / flutter_control_pad

A control pad with a virtual joystick and buttons.
https://pub.dev/packages/control_pad
GNU General Public License v3.0
40 stars 24 forks source link

Removed color of JoystickView parent Container #17

Closed JairajJangle closed 5 years ago

JairajJangle commented 5 years ago

Removed color parameter for Container widget containing child = JoystickView

Reason: Explicitly specifying white color to the parent Container widget is not required. This results in color of the Container being transparent which is expected by default. So when changing the Scaffold color to any other color say black, the square Container area around the JoystickView should inherit the color of the parent widget.

This just makes the example code cleaner.

artur-ios-dev commented 5 years ago

Hi @JairajJangle, this sounds reasonable. Thanks!