Skip to content

Instantly share code, notes, and snippets.

Container(
alignment: Alignment.topCenter,
padding: new EdgeInsets.only(
top: MediaQuery.of(context).size.height * .25,
right: 10.0,
left: 10.0),
child: new Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
),
child: Column(
children: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
IconButton(
icon: Icon(
Icons.menu,
color: Colors.white,
),
class CryptoWallet extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SingleChildScrollView(
child: Stack(
children: <Widget>[
Column(
children: <Widget>[
return Scaffold(
body: SingleChildScrollView(
child: Stack(
children: <Widget>[],
),
),
);
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Crypto Wallet',
home: CryptoWallet(),
bottomNavigationBar: BottomAppBar(
elevation: 0.0,
child: Container(
margin: EdgeInsets.symmetric(vertical: 20.0),
child: Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: <Widget>[
FlatButton(
padding:
Container accountItems(
String item, String charge, String dateString, String type,
{Color oddColour = Colors.white}) =>
Container(
decoration: BoxDecoration(color: oddColour),
padding:
EdgeInsets.only(top: 20.0, bottom: 20.0, left: 5.0, right: 5.0),
child: Column(
children: <Widget>[
Row(
SizedBox(
height: 40.0,
child: Icon(
Icons.refresh,
size: 35.0,
color: Color(0xFF015FFF),
),
)
SizedBox(
height: 40.0,
child: Icon(
Icons.refresh,
size: 35.0,
color: Color(0xFF015FFF),
),
)
displayAccoutList() {
return Container(
margin: EdgeInsets.all(15.0),
child: Column(
children: <Widget>[
accountItems("Trevello App", r"+ $ 4,946.00", "28-04-16", "credit",
oddColour: const Color(0xFFF7F7F9)),
accountItems(
"Creative Studios", r"+ $ 5,428.00", "26-04-16", "credit"),
accountItems("Amazon EU", r"+ $ 746.00", "25-04-216", "Payment",