pedroremedios

Untitled

Aug 19th, 2021 (edited)
522
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 3.09 KB | None | 0 0
  1. import 'package:diabretes/widgets/App/appbar_title.dart';
  2. import 'package:flutter/material.dart';
  3. import 'package:diabretes/gen/assets.gen.dart';
  4.  
  5. class FoodCalculator extends StatefulWidget {
  6.   const FoodCalculator({Key? key}) : super(key: key);
  7.  
  8.   @override
  9.   _FoodCalculatorState createState() => _FoodCalculatorState();
  10. }
  11.  
  12. class _FoodCalculatorState extends State<FoodCalculator> {
  13.   @override
  14.   Widget build(BuildContext context) {
  15.     return Scaffold(
  16.         appBar: AppBar(
  17.           title: AppBarTitle(
  18.               title: "Calculadora de Hidtratos",
  19.               titleColorTheme: TitleColorTheme.light),
  20.           backgroundColor: Color(0xFF05AEC3),
  21.           elevation: 0,
  22.         ),
  23.         backgroundColor: Color(0xFF05AEC3),
  24.         body: Padding(
  25.             padding: EdgeInsets.only(top: 16, left: 16, right: 16),
  26.             child: Column(
  27.               children: [
  28.                 Row(
  29.                   children: [
  30.                     Expanded(
  31.                       child: SizedBox(
  32.                         height: 44,
  33.                         child: TextField(
  34.                           textAlignVertical: TextAlignVertical.center,
  35.                           decoration: InputDecoration(
  36.                               prefixIcon: Assets.images.search
  37.                                   .image(color: Colors.white),
  38.                               contentPadding: EdgeInsets.symmetric(
  39.                                   vertical: 0, horizontal: 16),
  40.                               border: OutlineInputBorder(
  41.                                   borderSide: BorderSide(color: Colors.white)),
  42.                               enabledBorder: OutlineInputBorder(
  43.                                   borderSide: BorderSide(
  44.                                       color: Colors.white.withOpacity(0.4))),
  45.                               focusedBorder: OutlineInputBorder(
  46.                                   borderSide: BorderSide(color: Colors.white)),
  47.                               hintText: "Procure Alimentos"),
  48.                         ),
  49.                       ),
  50.                     ),
  51.                     Padding(
  52.                       padding: const EdgeInsets.only(left: 16),
  53.                       child: SizedBox(
  54.                           height: 44,
  55.                           width: 44,
  56.                           child: MaterialButton(
  57.                             shape: CircleBorder(
  58.                                 side: BorderSide(color: Colors.transparent)),
  59.                             onPressed: () {},
  60.                             child: IconButton(
  61.                               padding: EdgeInsets.zero,
  62.                               onPressed: () {},
  63.                               icon: Icon(Icons.add),
  64.                             ),
  65.                             color: Colors.white,
  66.                           )),
  67.                     ),
  68.                   ],
  69.                 ),
  70.                 Expanded(
  71.                   child: Container(
  72.                       color: Colors.blue, margin: EdgeInsets.only(top: 16)),
  73.                 ),
  74.               ],
  75.             )));
  76.   }
  77. }
  78.  
Add Comment
Please, Sign In to add comment