Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- import 'package:carousel_pro/carousel_pro.dart';
- import 'new_greeks.dart';
- void main() {
- runApp(MaterialApp(
- debugShowCheckedModeBanner: false,
- home: Homepage(),
- ));
- }
- class Homepage extends StatefulWidget {
- const Homepage({Key? key}) : super(key: key);
- @override
- _HomepageState createState() => _HomepageState();
- }
- class _HomepageState extends State<Homepage> {
- @override
- Widget build(BuildContext context) {
- Widget image_carousel = new Container(
- height: 200,
- child: Carousel(
- boxFit: BoxFit.cover,
- images: [
- Image.asset("images/c1.jpg"),
- Image.asset("images/m1.jpeg"),
- Image.asset("images/m2.jpg"),
- Image.asset("images/w1.jpeg"),
- Image.asset("images/w3.jpeg"),
- Image.asset("images/w4.jpeg"),
- ],
- autoplay: false,
- animationCurve: Curves.fastOutSlowIn,
- animationDuration: Duration(milliseconds: 1000),
- ),
- );
- return Scaffold(
- appBar: AppBar(
- elevation: 0,
- backgroundColor: Colors.red,
- title: Text('Fashapp'),
- actions: <Widget>[
- IconButton(
- onPressed: () {},
- icon: Icon(
- Icons.search,
- color: Colors.white,
- )),
- IconButton(
- onPressed: () {},
- icon: Icon(
- Icons.shopping_cart,
- color: Colors.white,
- )),
- ],
- ),
- drawer: Drawer(
- child: ListView(
- children: <Widget>[
- UserAccountsDrawerHeader(
- accountName: Text('Hitesh'),
- accountEmail: Text('jadhavhitesh207@gmail.com'),
- currentAccountPicture: GestureDetector(
- child: CircleAvatar(
- backgroundColor: Colors.grey,
- child: Icon(
- Icons.person,
- color: Colors.white,
- ),
- ),
- ),
- decoration: BoxDecoration(color: Colors.red),
- ),
- InkWell(
- onTap: () {},
- child: ListTile(
- title: Text('Home page'),
- leading: Icon(Icons.home),
- ),
- ),
- InkWell(
- onTap: () {},
- child: ListTile(
- title: Text('My account'),
- leading: Icon(Icons.person),
- ),
- ),
- InkWell(
- onTap: () {},
- child: ListTile(
- title: Text('My orders'),
- leading: Icon(Icons.shopping_basket),
- ),
- ),
- InkWell(
- onTap: () {},
- child: ListTile(
- title: Text('Categories'),
- leading: Icon(Icons.grid_3x3),
- ),
- ),
- InkWell(
- onTap: () {},
- child: ListTile(
- title: Text('Favourites'),
- leading: Icon(Icons.favorite),
- ),
- ),
- Divider(),
- InkWell(
- onTap: () {},
- child: ListTile(
- title: Text('Settings'),
- leading: Icon(Icons.settings),
- ),
- ),
- InkWell(
- onTap: () {},
- child: ListTile(
- title: Text('About'),
- leading: Icon(Icons.help, color: Colors.green),
- ),
- ),
- ],
- ),
- ),
- body: ListView(
- children: <Widget>[
- image_carousel
- ],
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement