Home > Mobile >  How to change the Color of the DatePicker in Flutter Webview
How to change the Color of the DatePicker in Flutter Webview

Time:12-23

I have had this same issue as discussed in enter image description here

CodePudding user response:

Try below code, refer image

CodePudding user response:

Refer the issue and configuration

  1. Open the build.gradle file for your application.

  2. Make sure that the repositories section includes Google's Maven Repository google(). For example:

      allprojects {
       repositories { 
       google() 
       centre() 
      }
    }
    

Add the library to the dependencies section:

dependencies {
    // ...
    implementation 'com.google.android.material:material:1.7'
    // ...
  }
  1. Set the light theme in /android/app/src/main/res/values/styles.xml: content_copy change

to

<style name="NormalTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
  1. Set the dark theme in /android/app/src/main/res/values-night/styles.xml content_copy change

to

<style name="NormalTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
  • Related