Skip to content

Instantly share code, notes, and snippets.

@DiegoGallegos4
Created April 23, 2020 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DiegoGallegos4/144ce52876bde9a5b650622dc2e33331 to your computer and use it in GitHub Desktop.
Save DiegoGallegos4/144ce52876bde9a5b650622dc2e33331 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
class OneBorderContainer extends StatefulWidget {
@override
_OneBorderState createState() => _OneBorderState();
}
class _OneBorderState extends State<OneBorderContainer> {
@override
Widget build(BuildContext context) {
var topBar = Padding(
padding: EdgeInsets.only(top: 15.0, left: 10.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
IconButton(
icon: Icon(Icons.arrow_back_ios),
color: Colors.white,
onPressed: () {},
),
Container(
width: 125.0,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
IconButton(
icon: Icon(Icons.filter_list),
color: Colors.white,
onPressed: () {},
),
IconButton(
icon: Icon(Icons.menu),
color: Colors.white,
onPressed: () {},
),
],
))
],
));
var mainTitle = Padding(
padding: EdgeInsets.only(left: 40.0),
child: Row(
children: <Widget>[
Text(
'Healthy',
style: TextStyle(
fontFamily: 'Montserrat',
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 25.0,
),
),
SizedBox(width: 10.0),
Text(
'Food',
style: TextStyle(
fontFamily: 'Montserrat',
color: Colors.white,
fontSize: 25.0,
),
)
],
),
);
return Scaffold(
backgroundColor: Color(0xFF21BFBD),
body: SafeArea(
bottom: false,
child: ListView(
padding: EdgeInsets.only(bottom: 0.0),
children: <Widget>[
topBar,
SizedBox(height: 25.0),
mainTitle,
SizedBox(height: 40.0),
Container(
height: MediaQuery.of(context).size.height - 185.0,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(50.0),
),
),
)
],
),
));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment