Answers for "column background color flutter"

1

background color to container flutter

new Container(
  width: 100,
  height: 30,
  decoration: new BoxDecoration(
    color: Colors.green
  ),
 )
Posted by: Guest on November-13-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

Code answers related to "column background color flutter"

Browse Popular Code Answers by Language