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

change the colour of outer circle in joystickView() #31

Open azarudeenpn opened 4 years ago

azarudeenpn commented 4 years ago

Is there any way i can change the colour of outer circle?

artur-ios-dev commented 4 years ago

Which one do you mean? There are currently those parameters regarding joystick's colour you can change:

/// Color of the joystick background
  ///
  /// Defaults to [Colors.blueGrey]
  final Color backgroundColor;

  /// Color of the inner (smaller) circle background
  ///
  /// Defaults to [Colors.blueGrey]
  final Color innerCircleColor;

You can pass those parameters to the JoystickView's init.

azarudeenpn commented 4 years ago

I mean the color of outer circle (bigger) which limiting the movement of center button.

artur-ios-dev commented 4 years ago

Isn't it the backgroundColor "Color of the joystick background" then? Or do you mean something else?

azarudeenpn commented 4 years ago

I mean the border circle.

artur-ios-dev commented 4 years ago

Not possible at the moment then. Need to inject the colour all the way to factory CircleView.joystickCircle(double size, Color color). PR is welcome.

jmsingh6871 commented 4 years ago

Hello, can I try to solve out this?

artur-ios-dev commented 4 years ago

Hello, can I try to solve out this?

Go ahead :)