mirrored_repositories/Flutter-Mobile-Application-Development/food_delivery_app/lib
// ignore_for_file: prefer_const_constructors_in_immutables, file_names, prefer_const_constructors, prefer_const_literals_to_create_immutables, must_be_immutable

import 'package:flutter/material.dart';

class CurrentLocation extends StatefulWidget {
  String locationName;
  CurrentLocation({Key? key, required this.locationName}) : super(key: key);

  @override
  _CurrentLocationState createState() => _CurrentLocationState();
}

class _CurrentLocationState extends State<CurrentLocation> {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        Row(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Icon(
              Icons.location_pin,
              color: Colors.red,
              size: 25,
            ),
            SizedBox(
              width: 15,
            ),
            Text(
              widget.locationName,
              style: TextStyle(
                  fontWeight: FontWeight.w600,
                  letterSpacing: 1,
                  color: Colors.grey[800],
                  fontSize: 17),
            ),
            SizedBox(
              width: 10,
            ),
            Icon(
              Icons.keyboard_arrow_down_rounded,
              color: Colors.grey[500],
              size: 30,
            ),
          ],
        ),
        Container(
          height: 40,
          margin: EdgeInsets.symmetric(vertical: 15),
          padding: EdgeInsets.symmetric(horizontal: 30),
          child: TextField(
            decoration: InputDecoration(
              enabledBorder: OutlineInputBorder(
                borderRadius: BorderRadius.circular(25.0),
                borderSide: BorderSide(color: Color(0xfff0e6d1), width: 0),
              ),
              focusedBorder: OutlineInputBorder(
                borderRadius: BorderRadius.circular(25.0),
                borderSide: BorderSide(color: Color(0xfff0e6d1), width: 0),
              ),
              filled: true,
              hintStyle: TextStyle(
                  color: Colors.grey[500],
                  fontSize: 12,
                  fontWeight: FontWeight.bold),
              hintText: "Search Your Food",
              fillColor: Color(0xfff0e6d1),
              prefixIcon: Icon(
                Icons.search,
                color: Colors.grey[500],
              ),
            ),
          ),
        )
      ],
    );
  }
}
