Answers for "how to set icon color in flutter"

2

flutter how to add opacity to color

backgroundColor: Colors.black.withOpacity(0.5)
Posted by: Guest on May-05-2020
4

how to give your app background colour in flutter

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Welcome to Flutter',
      home: Scaffold(
        backgroundColor: Color(0xff00BCD1),
        appBar: AppBar(
          title: Text('Flutter Screen Background Color Example'),
        ),
        body: Center(child: Body()),
      ),
    );
  }
}

/// This is the stateless widget that the main application instantiates.
class Body extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Text('How Are You?');
  }
}
Posted by: Guest on August-21-2020
2

change icon color flutter

Icon(
  Icons.widgets,
  color: Colors.blue.shade400,
)
Posted by: Guest on December-01-2020

Code answers related to "how to set icon color in flutter"

Browse Popular Code Answers by Language