Slider sample code with theme customization flutter
Sunday, October 25, 2020
Friday, October 2, 2020
theme property for widget - floating action button
floatingActionButton: Theme(
data: ThemeData(accentColor: Colors.green),
child: FloatingActionButton(
child: Icon(Icons.add),
),
),
theme reference - bg color text color
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
primaryColor: Color(0xFF0A0E21),
scaffoldBackgroundColor: Color(0xFF0AE21),
accentColor: Colors.purple,
textTheme: TextTheme(
body1: TextStyle(color: Color(0xFFFFFFFF)),
)),
home: InputPage(),
);
Subscribe to:
Comments (Atom)