Search
 
SCRIPT & CODE EXAMPLE
 

DART

materialstateproperty color

ElevatedButton(
          style: ButtonStyle(
          backgroundColor: MaterialStateProperty.all(Colors.amberAccent)),
          onPressed: () {},
          child: const Text(
            "Hover Me",
            style: TextStyle(
              fontSize: 20,
            ),
          ),
        ),
Comment

MaterialStateProperty flutter

// ** Declaration ** //
MaterialStateProperty<Color?>? redColor = MaterialStateProperty.all(Colors.red);
// backgroundColor property
backgroundColor: MaterialStateProperty.all(Colors.green),
//OR
backgroundColor: MaterialStateProperty.all(Color(0xFFEDEDED)),
Comment

PREVIOUS NEXT
Code Example
Dart :: RotatedBox class - widgets library - Flutter API 
Dart :: dart move item in list 
Dart :: flutter firestore read data 
Dart :: dart string to color 
Dart :: random number dart with length 7 
Dart :: how to disable windows build flutter 
Dart :: containskey dart 
Dart :: verified publisher account on pub.dev using google blogger 
Dart :: flutter slider color 
Dart :: flutter full screen bottom sheet 
Dart :: floting action button small size 
Dart :: dart enum 
Dart :: dart almashtirish 
Dart :: flutter list tile 
Dart :: dart write to file 
Dart :: remove status bar in flutter 
Dart :: how to check whether a list in dart is empty or not 
Dart :: how to convert text to double flutter 
Dart :: imageprovider flutter 
Dart :: color textfield text flutter 
Dart :: Flutter get each letter from string 
Dart :: convert date in flutter 
Dart :: dart object to map 
Dart :: popup keyboard automatically in flutter 
Dart :: flutter = How to set Scrollbar colour in flutter? 
Dart :: flutter delete directory 
Dart :: loop map flutter 
Dart :: flutter pageview show next page 
Dart :: how can i deep copy in dart 
Dart :: use search delegate flutter firebase 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =