Dorixona qidiruv mobil ilovasini ishlab chiqish
Download 212.18 Kb.
|
Rajabova Gulshira
- Bu sahifa navigatsiya:
- 2.1Activitiylarni bog’lash Button bosilganda keyinki aktivitiyga otadi
Finish tugmasini bosish esdan chiqmasin.
Mana Android Studio ham ishga tushdi. Endi buni Run qilsangiz sizda Hello World Applicationi paydo bo’ladi :) Android Studio User Interface bilan batafsil tanishib chiqib siz uni imkoniyatlarini o’zingiz uchun kashf etasiz. 2.1Activitiylarni bog’lash Button bosilganda keyinki aktivitiyga otadi Va royxatdan otish kerak boladi Royxatdan otgandan song ilovaga kirish amalga oshiriladi import 'package:flutter/material.dart'; import 'package:furniture_app/app.dart'; void main() { runApp(const FurnitureApp()); } eng birinchi qaysi activity ishlashini shu yerga yozilsa shu oyna ochiladi Chair bolimida yani stollar tanlab bosganda savatga borib qoshiladi Shu korinishda songra Add to cart tugmasini bosib Savatga qoshildi va summasi va sonini oshirish kamaytirish mumkin cmake_minimum_required(VERSION 3.14) set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") # Configuration provided via flutter tool.
# TODO: Move the rest of this into files in ephemeral. See # https://github.com/flutter/flutter/issues/57146. set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") # === Flutter Library === set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") # Published to parent scope for install step. set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) list(APPEND FLUTTER_LIBRARY_HEADERS "flutter_export.h" "flutter_windows.h" "flutter_messenger.h" "flutter_plugin_registrar.h" "flutter_texture_registrar.h" ) list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") add_library(flutter INTERFACE) target_include_directories(flutter INTERFACE "${EPHEMERAL_DIR}" ) target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") add_dependencies(flutter flutter_assemble) # === Wrapper === list(APPEND CPP_WRAPPER_SOURCES_CORE "core_implementations.cc" "standard_codec.cc" ) list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") list(APPEND CPP_WRAPPER_SOURCES_PLUGIN "plugin_registrar.cc" ) list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") list(APPEND CPP_WRAPPER_SOURCES_APP "flutter_engine.cc" "flutter_view_controller.cc" import 'package:furniture_app/models/address_model.dart'; class User implements Comparable { String userId; String name; String email; String password; String createdAt; String modifyAt; List devices; List List List addresses; User({
required this.name, required this.email, required this.password, required this.createdAt, required this.modifyAt, required this.devices, required this.cards, required this.favourites, required this.addresses, }); factory User.fromJson(Map userId: json["userId"] as String, name: json["name"] as String, email: json["email"] as String, password: json["password"] as String, createdAt: json["createdAt"] as String, modifyAt: json["modifyAt"] as String, devices: json["devices"] as List, cards: json["cards"] as List favourites: json["favourites"] as List addresses: json["addresses"] as List, ); Map "userId": userId, "name": name, "email": email, "password": password, "createdAt": createdAt, "modifyAt": modifyAt, "devices": devices, "cards": cards, "favourites": favourites, "addresses": addresses }; @override String toString() { return 'User{id: $userId, name: $name, email: $email, password: $password, createdAt: $createdAt, modifyAt: $modifyAt, devices: $devices, cards: $cards, favourites: $favourites, addresses: $addresses}'; } @override bool operator ==(Object other) => identical(this, other) || other is User && runtimeType == other.runtimeType && userId == other.userId && name == other.name && email == other.email && password == other.password && createdAt == other.createdAt && modifyAt == other.modifyAt && devices == other.devices && cards == other.cards && favourites == other.favourites && addresses == other.addresses; @override int get hashCode { return Object.hash(userId, name, email, password, createdAt, modifyAt, devices, cards, favourites, addresses); } @override Download 212.18 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling