Are you a beginner at flutter this tutorial is for you, you can create a simple food website following this video.
Food Website Flutter Ui design
Flutter UI design source code :
// Hey,,,, In this tutoril you can create flutter using.... a website...
// This tutorial for beginners...... let's started....
import 'package:flutter/material.dart';
main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: HomePage(),
);
}
}
class HomePage extends StatelessWidget {
const HomePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.black87,
body: ListView(
children: [
NavWidgetWeb(),
Padding(
padding: EdgeInsets.all(15),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Row(
children: [
Expanded(
flex: 2,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(
height: 15,
),
RichText(
text: TextSpan(
text: "What a Wounderful ",
style: TextStyle(
color: Colors.white,
fontSize: 90,
fontWeight: FontWeight.w800),
children: [
TextSpan(
text: "Pizza!",
style: TextStyle(
color: Colors.amber,
fontSize: 100,
fontWeight: FontWeight.w800))
]),
),
SizedBox(
height: 15,
),
Text(
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
style: TextStyle(color: Colors.white, fontSize: 18),
),
SizedBox(
height: 15,
),
ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Colors.amber),
onPressed: () {},
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
"Order Now",
style: TextStyle(
fontSize: 25,
fontWeight: FontWeight.bold),
),
))
],
),
),
// we need some space... here...
// IF you like this tutorial please thubms up and SUBSCRIBE our channel.... code link in the description... below...Thank you..
SizedBox(
width: 50,
),
Expanded(
flex: 3,
child: Image.network(
"https://cdn.pixabay.com/photo/2017/01/03/11/33/pizza-1949183_960_720.jpg",
fit: BoxFit.fitHeight,
),
),
],
)
],
),
)
],
),
);
}
}
class NavWidgetWeb extends StatelessWidget {
const NavWidgetWeb({
Key? key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(10),
child: Container(
height: 80,
decoration: BoxDecoration(
border: Border.all(color: Colors.white, width: 2),
borderRadius: BorderRadius.circular(15),
),
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
children: [
// Now we have no logo i... use same image logo and side...ok ... you can use another...
Image.network(
"https://cdn.pixabay.com/photo/2017/01/03/11/33/pizza-1949183_960_720.jpg",
fit: BoxFit.fitHeight,
),
Spacer(),
Row(
children: [
NavLink(title: "Home"),
NavLink(title: "Pizza"),
NavLink(title: "Blogs"),
NavLink(title: "About Us"),
],
)
],
),
),
),
);
}
}
class NavLink extends StatelessWidget {
const NavLink({
Key? key,
this.title,
}) : super(key: key);
final title;
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(8.0),
child: TextButton(
child: Text(
title,
style: TextStyle(
fontSize: 18, fontWeight: FontWeight.bold, color: Colors.amber),
),
onPressed: (() {}),
));
}
}
- How to Conduct YouTube Keyword Research Easily?Introduction YouTube is the second largest search engine in the world, making it a valuable platform for content creators and businesses alike. To maximize your visibility and reach on YouTube, it is crucial to conduct proper keyword research. By identifying the right keywords, you can optimize your videos for search and increase your chances of …
- How to upgrade the Dart SDK version in flutterIf you’re a Flutter developer, you know how important it is to stay up-to-date with the latest version of the Dart SDK. Upgrading the Dart SDK ensures that you have access to the latest features, bug fixes, and performance improvements. Step 1: Check Your Current Dart SDK Version Before you begin the upgrade process, it’s …
- Why Do Advertisers Use Testimonials?In the ever-competitive business landscape, nurturing strong connections with your customers remains paramount for enhancing your credibility and positioning yourself as an industry authority. Establishing credibility is the bedrock upon which trust is built, ultimately translating into increased sales. To bolster your company’s credibility, integrating testimonial advertising into your marketing strategy is essential. So, what …
- How To Earn $5 Fast Method!Looking to boost your income by $25 in less than an hour? This isn’t the start of a clichéd sales pitch; it’s about discovering several quick and simple ways to earn $5 online within minutes. For instance, you can make five bucks by completing tasks such as taking brief surveys, participating in short website usability …
- What Does BMF Mean On TikTok? Latest Social Media AcronymsIn the fast-paced world of social media, acronyms are the language of choice, enabling users to communicate swiftly without the need for lengthy phrases. While classics like LOL and OMG are still in use, the younger generation on TikTok has introduced a new acronym into the mix: BMF. So, what exactly does BMF mean, and …