Advertisement
Guest User

Untitled

a guest
May 26th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.36 KB | None | 0 0
  1. class MyApp extends StatelessWidget {
  2.   @override
  3.   Widget build(BuildContext context) {
  4.     return MaterialApp(
  5.       title: 'Smart recipes',
  6.       theme: ThemeData(
  7.         fontFamily: 'Calibri',
  8.         primarySwatch: Colors.blue,
  9.       ),
  10.       home: Scaffold(
  11.         backgroundColor: Colors.grey[200],
  12.         body: ListView(
  13.           children: <Widget>[
  14.             CustomAppbar(),
  15.             Padding(
  16.               padding: const EdgeInsets.symmetric(horizontal: 20),
  17.               child: RecipeWidget(),
  18.             ),
  19.             SizedBox(height: 50,),
  20.             Container(
  21.               padding: EdgeInsets.symmetric(horizontal: 20),
  22.               child: Text(
  23.                 'Cuisine classification',
  24.                 style: TextStyle(fontWeight: FontWeight.bold, fontSize: 40),
  25.               ),
  26.             ),
  27.             SizedBox(height: 20,),
  28.             Padding(
  29.               padding: const EdgeInsets.symmetric(horizontal: 20),
  30.               child: Row(
  31.                 children: <Widget>[
  32.                   CuisineClassWidget(cuisine: 'Homemade cakes', cuisineImage: 'images/cake2.png',),
  33.                   SizedBox(width: 20,),
  34.                   CuisineClassWidget(cuisine: 'Nutritious lunch', cuisineImage: 'images/meal.png',),
  35.                 ],
  36.               ),
  37.             )
  38.           ],
  39.         ),
  40.       ),
  41.     );
  42.   }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement