Skip to content

Can't change background color of keyPad ("keyPadColor"-property does nothing) #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
stiltet opened this issue Jan 11, 2021 · 0 comments

Comments

@stiltet
Copy link

stiltet commented Jan 11, 2021

There is no way to change the background color of the round number keys. There is a property setting called "keyPadColor" that I suspect is intended for this purpose following the documentation, but it does nothing when I change this value.

Source Code:

image

@override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( backgroundColor: Colors.white, body: SafeArea( child: Column( children: <Widget>[ SizedBox( height: 140, ), DialPad( keyPadTextColor: Colors.black, keyPadColor: Colors.red, // outputMask: //Visual formatting of input // "0000 000 00 00", //Here you can mask the display of inserted number. unformatted text won't show up. dialButtonColor: Colors.green, dialButtonIconColor: Colors.white, buttonIcon: FontAwesome.phone, enableDtmf: false, // Don't work in Android Emulator. backspaceButtonIconColor: Colors.red, useNumber: (number) { //use this number variable for any reference or implementation. print(number); }), ], ), ), ), ); }

Result:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant