Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- void main() {
- runApp(MyApp());
- }
- class MyApp extends StatelessWidget {
- // This widget is the root of your application.
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- home: Scaffold(
- appBar: AppBar(
- title: Text("Container"),
- ),
- body: Container(
- color: Colors.red,
- margin: EdgeInsets.fromLTRB(10, 15, 20, 25),
- // margin: EdgeInsets.all(10),
- padding: EdgeInsets.only(bottom: 20, top: 20),
- // padding: EdgeInsets.all(10),
- child: Container(
- // color: Colors.blue,
- // margin: EdgeInsets.all(10),
- decoration: BoxDecoration(
- borderRadius: BorderRadius.circular(20),
- gradient: LinearGradient(
- begin: Alignment.topLeft,
- end: Alignment.bottomRight,
- colors: <Color>[Colors.amber, Colors.blue])),
- ),
- ),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement