Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- class VendaPage extends StatefulWidget {
- @override
- _VendaPageState createState() => _VendaPageState();
- }
- class _VendaPageState extends State<VendaPage> {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- body: SafeArea(
- child: Container(
- color: Colors.black,
- child: Column(
- children: <Widget>[
- Expanded(
- flex: 1,
- child: Container(
- padding: EdgeInsets.fromLTRB(0, 0, 8, 0),
- alignment: Alignment.centerRight,
- width: double.infinity,
- child: IconButton(
- icon: Icon(
- Icons.shopping_cart,
- color: Colors.white,
- ),
- onPressed: () {},
- ),
- ),
- ),
- Expanded(
- flex: 6,
- child: Container(
- color: Colors.green,
- width: double.infinity,
- ),
- ),
- Expanded(
- flex: 3,
- child: Container(
- width: double.infinity,
- child: Row(
- children: <Widget>[
- Expanded(
- child: Container(
- margin: EdgeInsets.fromLTRB(16, 16, 8, 16),
- decoration: BoxDecoration(
- color: Colors.blue,
- borderRadius:
- BorderRadius.all(Radius.circular(15))),
- ),
- ),
- Expanded(
- child: Column(
- children: <Widget>[
- Expanded(
- child: Container(
- margin: EdgeInsets.fromLTRB(8, 16, 16, 8),
- decoration: BoxDecoration(
- color: Colors.red,
- borderRadius:
- BorderRadius.all(Radius.circular(15))),
- ),
- ),
- Expanded(
- child: Container(
- margin: EdgeInsets.fromLTRB(8, 8, 16, 16),
- decoration: BoxDecoration(
- color: Colors.red,
- borderRadius:
- BorderRadius.all(Radius.circular(15))),
- ),
- ),
- ],
- )),
- ],
- ),
- ),
- ),
- ],
- ),
- ),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement