Mavzu: Androidda “ World Countries ” mobil ilovasini yaratish. Kirish



Download 4,64 Mb.
bet38/42
Sana31.12.2021
Hajmi4,64 Mb.
#257886
1   ...   34   35   36   37   38   39   40   41   42
Bog'liq
bmi new

search_field.dart

import 'package:flutter/material.dart';


import 'package:shop_app/size_config.dart';

import '../../constants.dart';

class SearchField extends StatelessWidget {
const SearchField({Key key}): super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: EdgeInsets.only(top: getProportionateScreenWidth(10),left: getProportionateScreenWidth(10),right: getProportionateScreenWidth(10)),
child: Container(
width: double.infinity,
decoration: BoxDecoration(
color: kSecondaryColor.withOpacity(0.1),
borderRadius: BorderRadius.circular(15)),
child: TextField(
onChanged: (value) {},
decoration: InputDecoration(
enabledBorder: InputBorder.none,
focusedBorder: InputBorder.none,
hintText: "Qidiruv...",
prefixIcon: Icon(Icons.search),
contentPadding: EdgeInsets.symmetric(
horizontal: getProportionateScreenWidth(20),
vertical: getProportionateScreenWidth(11)),
),
),
),
);
}
}
country.dart

import 'package:meta/meta.dart';

class Country {
final String name;
final String nativeName;
final String code;
final String capital;
final String phone;
final String area;
final String population;
final String continent;
final String currency;

const Country({


@required this.phone,
@required this.area,
@required this.population,
@required this.continent,
@required this.currency,
@required this.capital,
@required this.name,
@required this.nativeName,
@required this.code,
});

factory Country.fromJson(Map json) => Country(


name: json['name'],
nativeName: json['native'],
code: json['code'],
capital: json['capital'],
phone: json['phone'],
area: json['area'],
population: json['population'],
continent: json['continent'],
currency: json['currency']);

@override


bool operator ==(Object other) =>
identical(this, other) ||
other is Country &&
runtimeType == other.runtimeType &&
name == other.name &&
nativeName == other.nativeName &&
code == other.code &&
capital == other.capital &&
phone == other.phone &&
area == other.area &&
population == other.population &&
continent == other.continent &&
currency == other.currency;

@override


int get hashCode =>
name.hashCode ^
nativeName.hashCode ^
code.hashCode ^
capital.hashCode ^
phone.hashCode ^
area.hashCode ^
population.hashCode ^
continent.hashCode ^
currency.hashCode;
}

Download 4,64 Mb.

Do'stlaringiz bilan baham:
1   ...   34   35   36   37   38   39   40   41   42




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish