duytq94 / flutter-intro-slider

Simple and configurable app introduction slider for Flutter
https://pub.dartlang.org/packages/intro_slider
MIT License
677 stars 141 forks source link

Buttons text color #130

Closed cksrc closed 2 years ago

cksrc commented 2 years ago

I was not able to change the font color of the skip,next,done buttons. None of the below seem to affect the color which looks to be overridden by white color.

      return ButtonStyle(
      textStyle: MaterialStateProperty.all<TextStyle>(
          const TextStyle(color: Color(0xFF2D2D2D))),
      shape: MaterialStateProperty.all<OutlinedBorder>(const StadiumBorder()),
      backgroundColor:
          MaterialStateProperty.all<Color>(const Color(0xFFC0DBCD)),
      overlayColor: MaterialStateProperty.all<Color>(const Color(0xFF2D2D2D)),
    );
  }

Please note I was able to alter other button styling properties, but not the text color.

duytq94 commented 2 years ago

Fixed in https://github.com/duytq94/flutter-intro-slider/pull/132