Advertisement
mactech24

macsmith_u

Mar 27th, 2023
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 8.78 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. class Kupa extends StatefulWidget {
  4.   const Kupa({super.key});
  5.  
  6.   static const String routeName = '/detail';
  7.  
  8.   static Route route() {
  9.     return MaterialPageRoute(
  10.       settings: RouteSettings(name: routeName),
  11.       builder: (_) => Kupa(),
  12.     );
  13.   }
  14.  
  15.   @override
  16.   State<Kupa> createState() => _KupaState();
  17. }
  18.  
  19. class _KupaState extends State<Kupa> {
  20.   @override
  21.   Widget build(BuildContext context) {
  22.     Size size = MediaQuery.of(context).size;
  23.     return Scaffold(
  24.       backgroundColor: Colors.white,
  25.       body: Column(children: [
  26.         Container(
  27.           height: 100,
  28.           child: Row(mainAxisAlignment: MainAxisAlignment.center, children: [
  29.             Image.asset(
  30.               "assets/images/arduino.jpg",
  31.               width: 50,
  32.               height: 50,
  33.             ),
  34.             SizedBox(
  35.               width: 10,
  36.             ),
  37.             Text(
  38.               "Kupa",
  39.               style: TextStyle(
  40.                 color: Colors.black,
  41.                 fontWeight: FontWeight.bold,
  42.                 fontSize: 25,
  43.               ),
  44.             )
  45.           ]),
  46.         ),
  47.         Container(
  48.           alignment: Alignment.center,
  49.           height: size.height * 0.4,
  50.           width: size.width * .95,
  51.           child: Stack(
  52.             children: [
  53.               Container(
  54.                 padding: EdgeInsets.all(20),
  55.                 height: size.width * 0.75,
  56.                 width: size.width * 0.75,
  57.                 child: Container(
  58.                   padding: EdgeInsets.all(6),
  59.                   height: size.width * 0.65,
  60.                   width: size.width * 0.65,
  61.                   decoration: BoxDecoration(
  62.                     border: Border.all(
  63.                       color: Colors.grey.withOpacity(0.5),
  64.                       width: 3,
  65.                     ),
  66.                     color: Colors.white,
  67.                     borderRadius: BorderRadius.circular(size.height * 0.4),
  68.                   ),
  69.                   child: Container(
  70.                     padding: EdgeInsets.all(45),
  71.                     height: size.width * 0.65,
  72.                     width: size.width * 0.65,
  73.                     decoration: BoxDecoration(
  74.                       color: Colors.grey[400],
  75.                       borderRadius: BorderRadius.circular(size.height * 0.4),
  76.                     ),
  77.                     child: Container(
  78.                       height: size.width * 0.65,
  79.                       width: size.width * 0.65,
  80.                       decoration: BoxDecoration(
  81.                         borderRadius: BorderRadius.circular(size.height * 0.4),
  82.                         image: DecorationImage(
  83.                           image: AssetImage("assets/images/arduino.jpg"),
  84.                           fit: BoxFit.cover,
  85.                         ),
  86.                       ),
  87.                     ),
  88.                   ),
  89.                 ),
  90.               ),
  91.               Positioned(
  92.                 left: 0,
  93.                 top: 150,
  94.                 child: Container(
  95.                   padding: EdgeInsets.all(5),
  96.                   height: 60,
  97.                   width: 60,
  98.                   decoration: BoxDecoration(
  99.                     border: Border.all(color: Colors.grey, width: 3),
  100.                     color: Colors.white,
  101.                     borderRadius: BorderRadius.circular(size.height * 0.4),
  102.                   ),
  103.                   child: Container(
  104.                     height: 60,
  105.                     width: 60,
  106.                     decoration: BoxDecoration(
  107.                       color: Colors.pink,
  108.                       borderRadius: BorderRadius.circular(size.height * 0.4),
  109.                       image: DecorationImage(
  110.                         image: AssetImage("assets/images/arduino.jpg"),
  111.                         fit: BoxFit.cover,
  112.                       ),
  113.                     ),
  114.                   ),
  115.                 ),
  116.               ),
  117.               Positioned(
  118.                 right: 50,
  119.                 top: 15,
  120.                 child: Container(
  121.                   padding: EdgeInsets.all(4),
  122.                   height: 50,
  123.                   width: 50,
  124.                   decoration: BoxDecoration(
  125.                     border: Border.all(color: Colors.grey, width: 2),
  126.                     color: Colors.white,
  127.                     borderRadius: BorderRadius.circular(size.height * 0.4),
  128.                   ),
  129.                   child: Container(
  130.                     height: 60,
  131.                     width: 60,
  132.                     decoration: BoxDecoration(
  133.                       image: DecorationImage(
  134.                         image: AssetImage("assets/images/arduino.jpg"),
  135.                         fit: BoxFit.cover,
  136.                       ),
  137.                       color: Colors.black,
  138.                       borderRadius: BorderRadius.circular(size.height * 0.4),
  139.                     ),
  140.                   ),
  141.                 ),
  142.               ),
  143.               Positioned(
  144.                 right: 60,
  145.                 bottom: 15,
  146.                 child: Container(
  147.                   padding: EdgeInsets.all(5),
  148.                   height: 40,
  149.                   width: 40,
  150.                   decoration: BoxDecoration(
  151.                     border: Border.all(color: Colors.grey, width: 2),
  152.                     color: Colors.white,
  153.                     borderRadius: BorderRadius.circular(size.height * 0.4),
  154.                   ),
  155.                   child: Container(
  156.                     height: 60,
  157.                     width: 60,
  158.                     decoration: BoxDecoration(
  159.                         image: DecorationImage(
  160.                           image: AssetImage("assets/images/arduino.jpg"),
  161.                           fit: BoxFit.cover,
  162.                         ),
  163.                         borderRadius: BorderRadius.circular(size.height * 0.4)),
  164.                   ),
  165.                 ),
  166.               )
  167.             ],
  168.           ),
  169.         ),
  170.         Column(
  171.           children: [
  172.             Text(
  173.               "All your\nfavorites foods",
  174.               style: TextStyle(
  175.                 color: Colors.black,
  176.                 fontWeight: FontWeight.bold,
  177.                 fontSize: 28,
  178.               ),
  179.               textAlign: TextAlign.center,
  180.             ),
  181.             SizedBox(
  182.               height: 10,
  183.             ),
  184.             Text(
  185.               "Order your favorite menu with easy,\non-demand delivery",
  186.               style: TextStyle(
  187.                 color: Colors.grey,
  188.                 fontWeight: FontWeight.bold,
  189.                 fontSize: 16,
  190.               ),
  191.               textAlign: TextAlign.center,
  192.             ),
  193.             SizedBox(
  194.               height: 30,
  195.             ),
  196.             Row(
  197.               mainAxisAlignment: MainAxisAlignment.center,
  198.               children: [
  199.                 Container(
  200.                   height: 12,
  201.                   width: 12,
  202.                   decoration: BoxDecoration(
  203.                     shape: BoxShape.circle,
  204.                     color: Color(0xFF036307),
  205.                   ),
  206.                 ),
  207.               ],
  208.             ),
  209.             SizedBox(
  210.               height: 30,
  211.             ),
  212.             Padding(
  213.               padding: EdgeInsets.symmetric(
  214.                 horizontal: 20.0,
  215.                 vertical: 10,
  216.               ),
  217.               child: ClipRRect(
  218.                 borderRadius: BorderRadius.circular(10),
  219.                 child: Container(
  220.                   color: Color(0xFF033504),
  221.                   height: 55,
  222.                   width: double.infinity,
  223.                   child: TextButton(
  224.                     style: TextButton.styleFrom(
  225.                       primary: Colors.white,
  226.                     ),
  227.                     onPressed: () {},
  228.                     child: Text(
  229.                       'Continue',
  230.                       style: TextStyle(fontSize: 20),
  231.                     ),
  232.                   ),
  233.                 ),
  234.               ),
  235.             ),
  236.             Padding(
  237.               padding: EdgeInsets.symmetric(
  238.                 horizontal: 20.0,
  239.               ),
  240.               child: ClipRRect(
  241.                 borderRadius: BorderRadius.circular(10),
  242.                 child: Container(
  243.                   color: Colors.grey[300],
  244.                   height: 55,
  245.                   width: double.infinity,
  246.                   child: TextButton(
  247.                     style: TextButton.styleFrom(
  248.                       primary: Color(0xFF033504),
  249.                     ),
  250.                     onPressed: () {},
  251.                     child: Text(
  252.                       'Sign In',
  253.                       style: TextStyle(fontSize: 20),
  254.                     ),
  255.                   ),
  256.                 ),
  257.               ),
  258.             ),
  259.           ],
  260.         )
  261.       ]),
  262.     );
  263.   }
  264. }
  265.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement