Untitled
unknown
plain_text
4 years ago
18 kB
25
Indexable
import 'package:flutter/material.dart';
void main(List<String> args) {
runApp(FirstApp());
}
class FirstApp extends StatelessWidget {
const FirstApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: SafeArea(
child: Scaffold(
body: Column(
children: [
Container(
//alignment: Alignment.center,
height: 200,
width: double.infinity,
decoration: BoxDecoration(
color: Color(0xff6C60E1),
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(35),
bottomRight: Radius.circular(35),
),
),
child: Column(
children: [
Expanded(
flex: 1,
child: Container(
padding: EdgeInsets.symmetric(horizontal: 1.0),
height: 50,
width: 350,
decoration: BoxDecoration(
//color: Color(0xffA8A0EC),
borderRadius: BorderRadius.circular(50.0),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Icon(
Icons.arrow_back_ios_new,
size: 25,
color: Colors.white,
),
Text(
'Cooking',
style: TextStyle(
fontSize: 26.0,
fontWeight: FontWeight.bold,
color: Colors.white),
),
Icon(
Icons.notifications_on_sharp,
size: 25,
color: Colors.white,
),
],
),
),
),
Expanded(
flex: 1,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
alignment: Alignment.center,
height: 50,
width: 350,
decoration: BoxDecoration(
color: Color(0xffA8A0EC),
borderRadius: BorderRadius.circular(50.0),
),
child: Row(
children: [
SizedBox(
width: 12,
),
Icon(
Icons.search_outlined,
size: 35,
color: Colors.white38,
),
Text(
'what bookmark are you searching for? ',
style: TextStyle(
color: Colors.white38, fontSize: 17),
)
],
),
),
],
),
),
],
),
),
Container(
//alignment: Alignment.centerLeft,
height: 531,
color: Color(0xffF8F9FF),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
//mainAxisAlignment: MainAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.all(12.0),
child: Text(
'Labels',
style: TextStyle(
fontSize: 30.0,
fontWeight: FontWeight.bold,
color: Colors.black45),
),
),
SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Row(
children: [
Container(
margin: EdgeInsets.only(left: 12),
//padding: EdgeInsets.all(5),
alignment: Alignment.center,
height: 35,
width: 55,
decoration: BoxDecoration(
border: Border.all(
color: Color(0xff6C60E1),
),
borderRadius: BorderRadius.circular(30.0),
),
child: Icon(
Icons.add_outlined,
color: Color(0xff6C60E1),
),
),
Container(
margin: EdgeInsets.only(left: 12),
padding: EdgeInsets.all(5),
alignment: Alignment.center,
height: 35,
width: 60,
decoration: BoxDecoration(
color: Color(0xffA8A0EC),
borderRadius: BorderRadius.circular(30.0),
),
child: Text(
'All',
style: TextStyle(
fontSize: 15.0,
fontWeight: FontWeight.bold,
color: Colors.white),
),
),
Container(
margin: EdgeInsets.only(left: 12),
padding: EdgeInsets.all(5),
alignment: Alignment.center,
height: 35,
width: 65,
decoration: BoxDecoration(
color: Color(0xff6C60E1),
borderRadius: BorderRadius.circular(30.0),
),
child: Text(
'Cake',
style: TextStyle(
fontSize: 15.0,
fontWeight: FontWeight.bold,
color: Colors.white),
),
),
Container(
margin: EdgeInsets.only(left: 12),
padding: EdgeInsets.all(5),
alignment: Alignment.center,
height: 35,
width: 100,
decoration: BoxDecoration(
color: Color(0xffA8A0EC),
borderRadius: BorderRadius.circular(30.0),
),
child: Text(
'Fast Food',
style: TextStyle(
fontSize: 15.0,
fontWeight: FontWeight.bold,
color: Colors.white),
),
),
Container(
margin: EdgeInsets.only(left: 12),
padding: EdgeInsets.all(5),
alignment: Alignment.center,
height: 35,
width: 70,
decoration: BoxDecoration(
color: Color(0xffA8A0EC),
borderRadius: BorderRadius.circular(30.0),
),
child: Text(
'Kabab',
style: TextStyle(
fontSize: 15.0,
fontWeight: FontWeight.bold,
color: Colors.white),
),
),
],
),
),
Padding(
padding: const EdgeInsets.only(
left: 12,
right: 12,
top: 12,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Container(
alignment: Alignment.centerLeft,
height: 50,
width: 192,
//color: Colors.amber,
child: Text(
'Bookmarks',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 30,
color: Colors.black45,
),
),
),
Container(
width: 150,
height: 50,
//color: Colors.black,
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Icon(
Icons.delete_outline,
color: Color(0xff6C60E1),
size: 30,
),
SizedBox(
width: 8,
),
Icon(
Icons.logout_outlined,
color: Color(0xff6C60E1),
size: 30,
),
SizedBox(
width: 8,
),
Icon(
Icons.import_export,
color: Color(0xff6C60E1),
size: 30,
),
SizedBox(
width: 15,
),
],
),
),
],
),
),
Container(
alignment: Alignment.centerLeft,
//width: 387,
//height: 25,
//color: Colors.amberAccent,
child: Row(
children: [
SizedBox(
width: 12,
),
Icon(
Icons.thumb_up_outlined,
size: 25,
color: Colors.black45,
),
SizedBox(
width: 6,
),
Text(
'154',
style: TextStyle(
fontSize: 19,
color: Colors.black45,
),
)
],
),
),
SizedBox(
height: 12,
),
Container(
alignment: Alignment.center,
child: Column(
children: [
Container(
height: 100,
width: 380,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(17),
),
child: Padding(
padding: const EdgeInsets.all(12.0),
child: Row(
children: [
Container(
height: 88,
width: 88,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(13),
image: DecorationImage(
image: AssetImage('images/cake.png'),
fit: BoxFit.cover,
),
),
)
],
),
),
),
SizedBox(
height: 12,
),
Container(
height: 100,
width: 380,
decoration: BoxDecoration(
color: Colors.white,
boxShadow: [
BoxShadow(
color: Color(0xffA8A0EC),
spreadRadius: 0,
offset: Offset(0, 5),
blurRadius: 20)
],
borderRadius: BorderRadius.circular(17),
),
child: Padding(
padding: const EdgeInsets.all(12.0),
child: Row(
children: [
Container(
height: 88,
width: 88,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(13),
image: DecorationImage(
image: AssetImage('images/cupcake.png'),
fit: BoxFit.cover,
),
),
)
],
),
),
),
SizedBox(
height: 12,
),
Container(
height: 100,
width: 380,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(17),
),
child: Padding(
padding: const EdgeInsets.all(12.0),
child: Row(
children: [
Container(
height: 88,
width: 88,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(13),
image: DecorationImage(
image:
AssetImage('images/pancakes.jpg'),
fit: BoxFit.cover,
),
),
)
],
),
),
),
],
),
),
],
),
),
],
),
),
),
);
}
}
Editor is loading...