投稿時間:2023-03-30 09:36:52 RSSフィード2023-03-30 09:00 分まとめ(41件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] KDDIの新ボーナス制度、KPIの3割を「ESG達成度」に 1年運用した結果は? https://www.itmedia.co.jp/business/articles/2303/30/news063.html 執行役員 2023-03-30 08:30:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] 忙しいビジネスパーソンが楽しく英語を学ぶ、どうすればいいのか https://www.itmedia.co.jp/business/articles/2303/30/news017.html itmedia 2023-03-30 08:30:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] キヤノンの“成果”はいかに? 4カ月研修後に「社内転職」 https://www.itmedia.co.jp/business/articles/2303/30/news031.html itmedia 2023-03-30 08:30:00
IT ITmedia 総合記事一覧 [ITmedia エグゼクティブ] データセンターが新設ラッシュ 「AI活用」で需要ふくらむ3.2兆円市場の魅力 https://mag.executive.itmedia.co.jp/executive/articles/2303/30/news097.html itmedia 2023-03-30 08:10:00
js JavaScriptタグが付けられた新着投稿 - Qiita event.targetを使った簡単な例 https://qiita.com/kaiyo_yume/items/0b5903a3dd82bed9793f eventtarget 2023-03-30 08:40:46
Ruby Rubyタグが付けられた新着投稿 - Qiita 【まとめ】RubyでAtCoder ABCを解いてみた https://qiita.com/shoya15/items/50fd17e37d7c64f2b166 atcoder 2023-03-30 08:51:57
Ruby Rubyタグが付けられた新着投稿 - Qiita RubyでAtCoder ABC294(A, B, C, D)を解いてみた https://qiita.com/shoya15/items/04914a0bbf732856d297 atcoder 2023-03-30 08:43:56
海外TECH DEV Community Bye bye https://dev.to/corners2wall/bye-bye-18ip Bye byeThis forum helps many people to find the answers they need It also helps to discuss stories from their own perspective Everyone has their own story to tell and this forum gives the opportunity for people to share those stories I believe this forum will be useful to those who need focused advice and thoughtful discussion on their individual stories I leave this forum Have a nice day Good luck guys 2023-03-29 23:36:28
海外TECH DEV Community What is FaceIO Facial Recognition? - Face Recognition Software and Face Analysis Explained https://dev.to/ahmedqureshi54/what-is-faceio-facial-recognition-face-recognition-software-and-face-analysis-explained-3e7m What is FaceIO Facial Recognition Face Recognition Software and Face Analysis Explained Introduction to FaceIOImage by Gerd Altmann from PixabayIn today s world artificial intelligence has seen tremendous growth Face recognition a branch of AI has gained immense popularity over the years With the advancement of facial recognition software there has been a growing interest in using face recognition as an alternative to traditional login and password user authentication systems FaceIO is a facial recognition API that enables website developers to easily implement facial recognition software into their websites or web applications It is being used in various domains such as security entertainment and e commerce to name a few FaceIO is a state of the art face recognition system that provides developers with the tools they need to integrate face recognition into their applications In this article we will discuss how to use FaceIO to authenticate and enroll users via face recognition on a typical website We will also provide code snippets to help you get started with FaceIO Learning ObjectivesIdentify the significance of the FACEIO App and describe its fundamental features Comprehend the operational mechanism of the FACEIO App including the authentication and verification procedures Analyze the stages involved in the facial recognition and identification process Evaluate the potential applications constraints and prospects of the FACEIO recognition system Acquire the skills to integrate FACEIO on your preferred browser through ReactJS functions Apply a step by step approach to implement the FACEIO App on your browser and gain practical experience Table of ContentsFeatures of FaceIOFacial RecognitionFace DetectionFace VerificationFace SearchFace Recognition TrainingPrerequisitesStep Import the FaceIO LibraryStep Enroll a UserStep User authenticationStep Displaying Authentication ResultsStep Managing Facial Index and Metrics ReportsBest Practices for Using FaceIO Facial Recognition systemsAdvanced Features of FaceIOUse Cases of Facial Recognition SystemLimitations of Facial Recognition TechnologyFuture of Facial Recognition TechnologyConclusionKey TakeawaysLinks to Get Started Features of FaceIOImage by Gerd Altmann from PixabayFaceIO provides several features that make it a robust face recognition system Some of these features include Facial RecognitionFacial recognition is the primary feature of FaceIO It can detect and recognize facial images and videos The facial recognition feature is built on deep learning algorithms making it highly accurate Face DetectionBiometric identification technology is a critical component of facial recognition FaceIO can detect facial images and videos with high accuracy The face detection feature is optimized to work even in low light environments making it useful in various settings Face VerificationFace verification is the process of verifying whether a person s face matches their identity FaceIO can verify a person s identity by comparing their face with a registered image or video This feature is useful in security applications Face SearchFace search allows users to search for faces in a large database of images or videos FaceIO can search for faces in large datasets quickly and accurately making it useful in law enforcement and security applications Face Recognition TrainingFace recognition training is the process of training the system to recognize specific faces FaceIO provides tools for training the system to recognize faces making it useful in various settings PrerequisitesImage by global uploadsBefore we begin make sure that you have created an account on the FaceIO website and obtained an API key You will also need to have a basic understanding of HTML CSS and JavaScript Step Import the FaceIO LibraryThe first step is to import the FaceIO library into your website or web application You can do this by adding the following script tag to the head section of your HTML file lt script src gt lt script gt This will load the FaceIO library onto your webpage Step Enroll a UserThe next step is to enroll a user in your facial recognition software To do this you need to capture a photo of the user s face and pass it to the FaceIO API You can use the getUserMedia function to capture the photo from the user s webcam navigator mediaDevices getUserMedia video true then function stream var video document getElementById video video srcObject stream video play In the above code snippet we are accessing the user s webcam using the getUserMedia function and playing the video stream in a video element with the id video Once you have captured the user s photo you can pass it to the FaceIO API to enroll the user var image document getElementById photo var canvas document createElement canvas canvas width video videoWidth canvas height video videoHeight var context canvas getContext d context drawImage video canvas width canvas height image src canvas toDataURL var fio new FACEIO lt your api key gt fio enroll photo image src userId user then function response console log response In the above code snippet we have created a canvas element and have drawn the video stream onto it We then convert the canvas to a data URL and pass it to the FaceIO API along with a user ID The FaceIO API will extract facial features from the photo and enroll the user into the facial recognition systems Step User AuthenticationNow that you have enrolled a user you can authenticate the user using face recognition algorithms To do this you need to capture a photo of the user s face and pass it to the FaceIO API for user authentication var image document getElementById photo var canvas document createElement canvas canvas width video videoWidth canvas height video videoHeight var context canvas getContext d context drawImage video canvas width canvas height image src canvas toDataURL var fio new FACEIO lt your api key gt fio authenticate photo image src then function response console log response In the above code snippet we create a canvas element and draw the video stream onto it We then convert the canvas to a data URL and pass it to the FaceIO API for user authentication The FaceIO API will start measuring the facial features of the enrolled user to compare the photo and return a response indicating whether the user is authenticated Step Displaying Authentication ResultsOnce the authentication response is returned you can display the user authentication results to the user For example you can display a message indicating whether the user was successfully authenticated or not var result document getElementById result if response success result innerText User Authentication successful else result innerText User Authentication failed In the above code snippet we are displaying a message to the user indicating whether the user authentication factor was successful or not Step Managing Facial Index and Metrics ReportsOnce you have enrolled and authenticated users using FaceIO you can manage your application s facial index and collect real time metrics reports You can do this by logging into the FaceIO console and navigating to the “Facial Index and “Metrics sections In the “Facial Index section you can view and manage your application s facial index This includes the list of enrolled users and their associated facial features In the “Metrics section you can view real time metrics reports on your facial recognition system usage This includes metrics such as the number of enrollments authentication factor and errors Best Practices for Using FaceIO Facial Recognition systemsImage by Tumisu from PixabayFacial recognition algorithms are powerful tools that can be used for various applications but it also raises concerns about privacy and security To ensure that you are using FaceIO responsibly and ethically it is essential to follow best practices for using face recognition systems Some best practices include Obtain Consent Inform users about the use of facial recognition software and obtain their consent before enrolling them into the facial recognition systems Ensure Data Privacy Protect users data by following data privacy laws and regulations Encrypt and securely store face recognition data to prevent unauthorized access Limit Data Collection Collect only the minimum amount of biometric data necessary for the application to function properly Do not collect biometric data that is not relevant or necessary Provide Transparency Be transparent about how facial recognition technology is being used and provide clear information about biometric data collection storage and usage Ensure Accuracy and Fairness Ensure that the facial recognition system is accurate and fair for all users regardless of gender race or other demographic factors Regularly test and evaluate the system to ensure that it is working as intended Advanced Features of FaceIOImage by versionxIn addition to the core features of facial recognition FaceIO also provides advanced features that can enhance the functionality and capabilities of your application Some of these features include Live Face Detection FaceIO can detect faces in real time video streams making it useful for applications such as security monitoring and live video chat Face Comparison FaceIO can compare two faces and determine if they belong to the same person This feature is useful for identity verification and fraud detection Face Landmark Detection FaceIO can detect facial landmarks such as the eyes nose and mouth This feature can be used for applications such as facial expression analysis and augmented reality Face Blur FaceIO can blur faces in images and videos for privacy protection This feature is useful for applications such as news broadcasting and social media Use Cases of Facial Recognition SystemImage by RawPixel from freepikFacial recognition technology can be used in various industries and applications Here are some use cases for facial recognition software Security and Surveillance Face recognition systems are widely used by the national crime records bureau in security and surveillance systems to track and identify people in real time It is commonly used in airports banks and other high security areas law enforcement The use of facial recognition by law enforcement agencies continues to increase To verify arrests mugshots are taken from the people arrested After arrests have been completed a person s photo is scanned and deposited in federal face recognition databases Access Control Facial recognition software can be used to replace traditional access control methods such as ID cards passwords and PINs It provides a more secure and convenient way to gain access to secure areas Customer Service Face recognition systems can be used in customer service applications to personalize interactions and provide a more seamless customer experience For example a store can use a face recognition system to identify a customer and provide them with personalized recommendations Marketing and Advertising Face recognition algorithms can be used in marketing and advertising to target specific audiences and measure the effectiveness of marketing campaigns For example a store can use a face recognition system to track the demographics of customers visiting their store and adjust their marketing strategies accordingly Healthcare A system like facial recognition can be used in healthcare to improve patient identification and provide more personalized care For example hospitals can use facial recognition software to quickly identify patients and can gain access to their medical records Entertainment Facial recognition systems are used in various entertainment applications such as gaming and virtual reality It provides a more immersive experience by allowing users to interact with the virtual world using human faces Education Facial recognition systems can be used in education to monitor student attendance and track their engagement in class It provides a more accurate way of measuring student performance and identifying areas where students may need additional support By exploring these advanced features and use cases you can expand your facial recognition system s capabilities and potential applications Limitations of Facial Recognition TechnologyImage by RawPixel from freepikWhile face recognition technology has many benefits it also has some limitations Here are some of the main limitations of facial recognition systems Accuracy Facial recognition algorithms are not accurate and can sometimes produce false positives or false negatives This can lead to errors in user authentication or identification Bias Face recognition software can be biased based on factors such as race gender and age This can lead to discriminatory outcomes and unfair treatment Privacy Face recognition technology raises privacy concerns as it involves collecting and processing personal data This data can be misused or hacked leading to identity theft and other privacy violations Consent Facial recognition work requires the consent of individuals before their data can be collected and processed In some cases obtaining consent can be challenging particularly in public spaces Regulation There is currently no standardized regulation of face recognition software which can lead to inconsistent use and potential abuse Future of Facial Recognition TechnologyImage by EdriThe future of face recognition technology is promising with many advancements being made in the field Here are some of the key trends to watch out for Increased Accuracy Face recognition technology is expected to become more accurate and reliable as deep learning algorithms and other advancements are made in the field Improved Bias Mitigation Efforts are being made to mitigate the bias in face recognition technology such as the development of diverse datasets and the use of explainable AI Greater Privacy Protection Privacy concerns will continue to be addressed with the development of better data encryption and storage techniques as well as the establishment of standardized regulations More Applications Facial recognition software is expected to be used in more applications including retail transportation and public safety Integration with Other Technologies Facial recognition works will likely be integrated with other emerging technologies such as augmented reality and the internet of things leading to new and innovative use cases ConclusionImage by ytimgIn this article we have discussed how to use FaceIO for user authentication via face recognition on a typical website or web application FaceIO is a powerful and versatile facial recognition API that can be easily integrated into your website or web application By following the steps outlined in this article you can easily enroll and authenticate users using facial recognition technology With FaceIO you can provide a more secure and convenient user authentication system for your website or web application users Remember to follow best practices for data privacy and security when implementing facial recognition technology For example inform users about the use of facial recognition technology and obtain their consent before enrolling them into the facial recognition system Key Takeaways This article highlights the key features and benefits of FACEIO a cross browser authentication system that uses facial recognition to verify user IDs Firstly FACEIO utilizes facial recognition technology which eliminates the need for traditional authentication methods like passwords and PINs making user authentication simpler and quicker Secondly FACEIO s Enroll and Authenticate functions can be integrated with JavaScript s library providing developers with an easy way to incorporate facial recognition technology into their applications Thirdly FACEIO uses webcams or in your face technology to perform facial recognition which means it does not require infrared blasters making it more accessible to users Lastly FACEIO offers increased security compared to traditional authentication methods because facial recognition is a unique identifier making it difficult for fraudsters to access user accounts using stolen credentials Overall FACEIO is an innovative authentication system that leverages facial recognition technology to provide a more secure and user friendly authentication experience Links to Get StartedIf you re new to FACEIO start with our FACEIO In Under Minutes guide to learn the basics quickly Want to integrate FACEIO into your website Check out our FACEIO Integration Guide which includes the fio js package for face recognition Our Developer Center has all the documentation code snippets and tools you need to seamlessly integrate FACEIO into your website Have questions Find quick answers in our FAQs section At FACEIO we take your privacy seriously Learn more about our security measures in our Trust Center 2023-03-29 23:17:52
海外TECH DEV Community Going fullstack with Flutter and MongoDB Atlas Data API https://dev.to/malomz/going-fullstack-with-flutter-and-mongodb-atlas-data-api-381m Going fullstack with Flutter and MongoDB Atlas Data APIApplication Programming Interface API has revolutionized how applications are built It enables software modules to communicate with each other using sets of standards APIs have allowed companies to integrate new applications with existing software systems provide an avenue for rapid innovation and act as a gateway for enhancing customer experience across multiple platforms mobile web etc With the possibilities that APIs offer it has also come with its share of difficulties Developers are burdened with selecting the right database integrating security logging and monitoring etc In this post we will learn how to build a mobile phonebook using MongoDB Data API and Flutter The project s GitHub repository can be found here What is MongoDB Data APIMongoDB Data API is a fully managed platform agnostic service that provides a secure and fast standard HTTPS for managing data stored on MongoDB Web browsers web servers CI CD pipelines serverless amp edge computing environments mobile applications or any HTTPS enabled platforms can connect to the Data API using standard HTTPS requests The Data API also ships with the following Authorization and authentication mechanism Data validation when writing and reading from the API Support for JSON or EJON API response PrerequisitesTo fully grasp the concepts presented in this tutorial the following are required Basic understanding of Dart and Flutter Flutter SDK installed MongoDB account Signup is completely free Either iOS Simulator Android Studio or Chrome web browser to run the application Getting startedTo get started we need to clone the project by navigating to the desired directory and running the command below git clone amp amp cd flutter mongo Running the projectFirst we need to install the project dependencies by running the command below flutter pub getThen run the project using the following command flutter runThe command above will run the application on the selected device Setting up MongoDB Data APICreate a DatabaseWith our application up and running we need to log in or sign up into our MongoDB account Click the project dropdown menu and click on the New Project button Enter the flutter realm as the project name click Next and click Create Project Click on Build a DatabaseSelect Shared as the type of database and Create to set up a cluster Next we need to navigate to the Database menu click the Browse Collection tab and click the Add My Own Data button to add sample data to our database To add sample data first we need to create a phonebook database and a phonebookCollection collection Lastly we need to add sample data to our phonebookCollection as shown below KeyValueObject TypefullnameJohn TravoltaStringphonenumberIntSetup the Data APIWith our database fully set up first we need to navigate to the Data API tab select the Cluster our database was created in and click the Enable Data Access from the Data API button With that done MongoDB automatically provides us with a fast and secure API service By default the provisioned API is inaccessible We need to create an API key to connect to the API securely To do this click the Create API Key button input flutter mongo as the name and Generate API Key PS We must copy the generated API key It will come in handy when integrating the API with our Flutter application Integrating MongoDB Data API with FlutterWith all that done we can start building our application using the API First we need to create a model to convert the response sent from the Data API to a Dart object The model will also cater to JSON serialization To do this we need to create a utils dart file in the lib folder and add the snippet below class PhoneBook String id String fullname int phonenumber PhoneBook this id required this fullname required this phonenumber Map lt dynamic dynamic gt toJson return fullname fullname phonenumber phonenumber factory PhoneBook fromJson Map lt dynamic dynamic gt json return PhoneBook id json id fullname json fullname phonenumber json phonenumber Next we must create a service file to separate the application core logic from the UI To do this create a phone service dart file inside the lib directory Then add the snippet below import dart convert import package flutter mongo utils dart import package dio dio dart class PhoneService final dio Dio final String dataSource Cluster final String database phonebook final String collection phonebookCollection final String endpoint lt REPLACE WITH THE ENDPOINT URL gt static const apiKey REPLACE WITH THE API KEY var headers content type application json apiKey apiKey Future lt List lt PhoneBook gt gt getPhoneContacts async var response await dio post endpoint action find options Options headers headers data jsonEncode dataSource dataSource database database collection collection filter if response statusCode var respList response data documents as List var phoneList respList map json gt PhoneBook fromJson json toList return phoneList else throw Exception Error getting phone contacts Future lt PhoneBook gt getSinglePhoneContact String id async var response await dio post endpoint action find options Options headers headers data jsonEncode dataSource dataSource database database collection collection filter id oid id if response statusCode var resp response data documents var contact PhoneBook fromJson resp return contact else throw Exception Error getting phone contact Future updatePhoneContact String id String fullname int phonenumber async var response await dio post endpoint action updateOne options Options headers headers data jsonEncode dataSource dataSource database database collection collection filter id oid id update set fullname fullname phonenumber phonenumber if response statusCode return response data else throw Exception Error getting phone contact Future createPhoneContact String fullname int phonenumber async var response await dio post endpoint action insertOne options Options headers headers data jsonEncode dataSource dataSource database database collection collection document fullname fullname phonenumber phonenumber if response statusCode return response data else throw Exception Error creating phone contact Future deletePhoneContact String id async var response await dio post endpoint action deleteOne options Options headers headers data jsonEncode dataSource dataSource database database collection collection filter id oid id if response statusCode return response data else throw Exception Error deleting phone contact The snippet above does the following Imports the required dependencies Creates a PhoneService class with dataSource database collection endpoint apikey and headers properties Creates the getPhoneContacts getSinglePhoneContact updatePhoneContact createPhoneContact and deletePhoneContact methods that uses the Dio package to configure permissions and make secure HTTPS request to the Data API configured earlier and returns the appropriate responses Consuming the serviceWith that done we can use the service to perform the required operation Get all contactsTo get started we need to modify the home dart file in the screens directory and update it by doing the following First we need to import the required dependencies and create a method to get the list of contacts saved in the database import package flutter material dart import package flutter mongo phone service dart import package flutter mongo screens create dart import package flutter mongo screens detail dart import package flutter mongo utils dart class Home extends StatefulWidget const Home super key override State lt Home gt createState gt HomeState class HomeState extends State lt Home gt late List lt PhoneBook gt contacts bool isLoading false bool isError false override void initState getContacts super initState getContacts setState isLoading true PhoneService getPhoneContacts then value setState contacts value isLoading false catchError onError setState isLoading false isError true override Widget build BuildContext context UI CODE GOES HERE The snippet above does the following Imports the required dependencies Line s Create the contacts isLoading and isError properties to manage the application state Line s Create a getContacts method to get the list of available contacts on the database using the PhoneService getPhoneContacts and set states accordinglyLastly we need to modify the UI to use the states and method created to get the contacts list imports goes here class Home extends StatefulWidget code goes here class HomeState extends State lt Home gt state goes here override void initState code goes here getContacts code goes here override Widget build BuildContext context return isLoading const Center child CircularProgressIndicator color Colors blue isError const Center child Text Error getting phone contacts style TextStyle color Colors red fontWeight FontWeight bold Scaffold appBar AppBar title const Text Phonebook backgroundColor Colors black body ListView builder itemCount contacts length itemBuilder context index return InkWell onTap Navigator push context MaterialPageRoute builder context gt Detail id contacts index id child Container decoration const BoxDecoration border Border bottom BorderSide width color Colors grey padding EdgeInsets fromLTRB child Row mainAxisAlignment MainAxisAlignment spaceEvenly children Expanded flex child Column crossAxisAlignment CrossAxisAlignment start children Text contacts index fullname style TextStyle color Colors black fontWeight FontWeight w SizedBox height Text contacts index phonenumber toString Column crossAxisAlignment CrossAxisAlignment end children SizedBox height Icon Icons arrow forward ios rounded floatingActionButton FloatingActionButton onPressed Navigator push context MaterialPageRoute builder context gt const Create backgroundColor Colors black tooltip Create contact child const Icon Icons add Create contactsTo create a contact we need to modify the create dart file in the screen directory and update it by doing the following First we need to import the required dependency and create a method to save the contact to the database import package flutter material dart import package flutter mongo phone service dart ADD THIS import package flutter mongo screens home dart class Create extends StatefulWidget const Create Key key super key key override State lt Create gt createState gt CreateState class CreateState extends State lt Create gt final formKey GlobalKey lt FormState gt final TextEditingController fullname TextEditingController final TextEditingController phonenumber TextEditingController bool isLoading false createContact setState isLoading true PhoneService createPhoneContact fullname text int parse phonenumber text then value setState isLoading false ScaffoldMessenger of context showSnackBar const SnackBar content Text Contact created successfully Navigator push context MaterialPageRoute builder context gt const Home catchError onError setState isLoading false ScaffoldMessenger of context showSnackBar const SnackBar content Text Error creating contact override Widget build BuildContext context UI CODE GOES HERE The snippet above does the following Import the required dependency Line s Create the fullname phonenumber and isLoading properties to manage the application state Lines Create a createContact method to save the contact using the PhoneService createPhoneContact service set states accordinglyLastly we need to modify the UI to use the method and states created to process the form import goes here class Create extends StatefulWidget code goes here class CreateState extends State lt Create gt state goes here createContact code goes here override Widget build BuildContext context return Scaffold appBar AppBar title const Text Create contact backgroundColor Colors black body Padding padding const EdgeInsets symmetric horizontal vertical child Form key formKey child Column children Column crossAxisAlignment CrossAxisAlignment start children Column crossAxisAlignment CrossAxisAlignment start children const Text Fullname style TextStyle color Colors grey fontSize const SizedBox height TextFormField controller fullname validator value if value null value isEmpty return Please input your fullname return null decoration InputDecoration contentPadding const EdgeInsets symmetric vertical horizontal hintText input name fillColor Colors white focusedBorder OutlineInputBorder borderRadius BorderRadius circular borderSide const BorderSide color Colors grey enabledBorder OutlineInputBorder borderRadius BorderRadius circular borderSide const BorderSide color Colors grey errorBorder OutlineInputBorder borderRadius BorderRadius circular borderSide const BorderSide color Colors red keyboardType TextInputType text maxLines null const SizedBox height const Text Phone number style TextStyle color Colors grey fontSize const SizedBox height TextFormField controller phonenumber validator value if value null value isEmpty return Please input your phone number return null decoration InputDecoration contentPadding const EdgeInsets symmetric vertical horizontal hintText input phone number fillColor Colors white focusedBorder OutlineInputBorder borderRadius BorderRadius circular borderSide const BorderSide color Colors grey enabledBorder OutlineInputBorder borderRadius BorderRadius circular borderSide const BorderSide color Colors grey errorBorder OutlineInputBorder borderRadius BorderRadius circular borderSide const BorderSide color Colors red keyboardType TextInputType number const SizedBox height SizedBox height width double infinity child TextButton onPressed isLoading null if formKey currentState validate createContact style ButtonStyle backgroundColor MaterialStateProperty all lt Color gt Colors black child const Text Create contact style TextStyle color Colors white fontWeight FontWeight bold fontSize Get a contact edit a contact and delete contactsTo perform the stated operations in our application we need to modify the detail dart file in the screens directory and update it by doing the following First we need to import the required dependencies and create methods to get edit and delete contacts import package flutter material dart import package flutter mongo phone service dart import package flutter mongo screens home dart import package flutter mongo utils dart class Detail extends StatefulWidget const Detail Key key required this id super key key final String id override State lt Detail gt createState gt DetailState class DetailState extends State lt Detail gt final formKey GlobalKey lt FormState gt final TextEditingController fullname TextEditingController final TextEditingController phonenumber TextEditingController late PhoneBook contact bool isLoading false bool isSubmitting false bool isError false override void initState getContacts super initState getContacts setState isLoading true PhoneService getSinglePhoneContact widget id then value setState contact value isLoading false fullname text value fullname phonenumber text value phonenumber toString catchError onError setState isLoading false isError true updateContact String fullname int phonenumber setState isSubmitting true PhoneService updatePhoneContact widget id fullname phonenumber then value setState isSubmitting false ScaffoldMessenger of context showSnackBar const SnackBar content Text Contact updated successfully Navigator push context MaterialPageRoute builder context gt const Home catchError onError setState isSubmitting false isError true ScaffoldMessenger of context showSnackBar const SnackBar content Text Error updating contact deleteContact setState isSubmitting true PhoneService deletePhoneContact widget id then value setState isSubmitting false ScaffoldMessenger of context showSnackBar const SnackBar content Text Contact deleted successfully Navigator push context MaterialPageRoute builder context gt const Home catchError onError setState isSubmitting false isError true ScaffoldMessenger of context showSnackBar const SnackBar content Text Error deleting contact override Widget build BuildContext context UI GOES HERE The snippet above does the following Import the required dependencies Line s Create the fullname phonenumber contact isLoading isSubmitting and isError properties to manage the application state Lines Create the getSingleContact updateContact and deleteContact methods to get details of the selected contact update it and delete it using the PhoneService getSinglePhoneContact PhoneService updatePhoneContact and PhoneService deletePhoneContact service respectively set states accordinglyLastly we need to modify the UI to use the methods and states created to process the operations import goes here class Detail extends StatefulWidget code goes here class DetailState extends State lt Detail gt states goes here override void initState code goes here getSingleContact code goes here updateContact String fullname int phonenumber code goes here deleteContact code goes here override Widget build BuildContext context return isLoading const Center child CircularProgressIndicator color Colors blue isError const Center child Text Error getting phone contacts style TextStyle color Colors red fontWeight FontWeight bold Scaffold appBar AppBar title const Text Details backgroundColor Colors black body Padding padding const EdgeInsets symmetric horizontal vertical child Form key formKey child Column children Column crossAxisAlignment CrossAxisAlignment start children Column crossAxisAlignment CrossAxisAlignment start children const Text Fullname style TextStyle color Colors grey fontSize const SizedBox height TextFormField controller fullname validator value if value null value isEmpty return Please input your fullname return null decoration InputDecoration contentPadding const EdgeInsets symmetric vertical horizontal hintText input name fillColor Colors white focusedBorder OutlineInputBorder borderRadius BorderRadius circular borderSide const BorderSide color Colors grey enabledBorder OutlineInputBorder borderRadius BorderRadius circular borderSide const BorderSide color Colors grey errorBorder OutlineInputBorder borderRadius BorderRadius circular borderSide const BorderSide color Colors red keyboardType TextInputType text maxLines null const SizedBox height const Text Phone number style TextStyle color Colors grey fontSize const SizedBox height TextFormField controller phonenumber validator value if value null value isEmpty return Please input your phone number return null decoration InputDecoration contentPadding const EdgeInsets symmetric vertical horizontal hintText input phone number fillColor Colors white focusedBorder OutlineInputBorder borderRadius BorderRadius circular borderSide const BorderSide color Colors grey enabledBorder OutlineInputBorder borderRadius BorderRadius circular borderSide const BorderSide color Colors grey errorBorder OutlineInputBorder borderRadius BorderRadius circular borderSide const BorderSide color Colors red keyboardType TextInputType number const SizedBox height SizedBox height width double infinity child TextButton onPressed isSubmitting null if formKey currentState validate updateContact fullname text int parse phonenumber text style ButtonStyle backgroundColor MaterialStateProperty all lt Color gt Colors black child const Text Update contact style TextStyle color Colors white fontWeight FontWeight bold fontSize floatingActionButton FloatingActionButton onPressed isSubmitting null deleteContact backgroundColor Colors red tooltip Delete child const Icon Icons delete With that done we restart the application using the code editor or run the command below flutter run ConclusionThis post discussed how to build a fullstack mobile application using MongoDB Data API and Flutter With the Data API organizations can quickly create secure and scalable services that can be used across platforms These resources may also be helpful MongoDB Data API DIO package MongoDB official documentation 2023-03-29 23:03:02
Apple AppleInsider - Frontpage News Lost Apple Watch spends a night in the ocean, found in working condition https://appleinsider.com/articles/23/03/29/lost-apple-watch-spends-a-night-in-the-ocean-found-in-working-condition?utm_medium=rss Lost Apple Watch spends a night in the ocean found in working conditionAn Apple Watch takes a dive without its owner but is recovered a day later and returned without damage thanks to Lost Mode Apple Watch Series There are regular reports of working iPhones being recovered from bodies of water but rarely if ever an Apple Watch However one unlucky man from Praia Grande would put his Apple Watch s water resistance to the test Read more 2023-03-29 23:46:00
金融 金融総合:経済レポート一覧 ファースト・シチズンズ・バンクがSVBを買収~SVBの融資債権720億ドルを165億ドルの大幅割引で買い取るスキーム...:木内登英のGlobal Economy & Policy Insight http://www3.keizaireport.com/report.php/RID/531637/?rss lobaleconomypolicyinsight 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 FX Daily(3月28日)~年度末を控え131円を挟んだ値動き http://www3.keizaireport.com/report.php/RID/531638/?rss fxdaily 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 金融史に残る破綻、再編劇が起きても持ちこたえている金融市場~GFCの経験が活かされているがまだ楽観はできない:Market Side Mirror http://www3.keizaireport.com/report.php/RID/531643/?rss marketsidemirror 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 2023年ABAC金融タスクフォースの活動 http://www3.keizaireport.com/report.php/RID/531644/?rss 大和総研 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 信用金庫の新しいビジネスモデル策定~本部DX人材の育成動向:ニュース&トピックス http://www3.keizaireport.com/report.php/RID/531649/?rss 中小企業 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 イングランド銀行の量的緩和からの出口戦略の変化と量的引締 http://www3.keizaireport.com/report.php/RID/531655/?rss 出口戦略 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 欧州中央銀行の量的引き締め策に向けた論点整理 http://www3.keizaireport.com/report.php/RID/531656/?rss 引き締め 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 Developments in cashless payments in the EU and the introduction of a digital euro http://www3.keizaireport.com/report.php/RID/531657/?rss cashless 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 EU銀行同盟における単一破綻処理メカニズムの運用と課題 http://www3.keizaireport.com/report.php/RID/531658/?rss 日本証券経済研究所 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 EUにおける株式市場規制の展開とブレグジット http://www3.keizaireport.com/report.php/RID/531659/?rss 日本証券経済研究所 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 EC決済サービス市場に関する調査を実施(2023年)【概要】~2021年度のEC決済サービス市場は23兆円超、2026年度に約40兆円規模へ成長すると予測 http://www3.keizaireport.com/report.php/RID/531674/?rss 決済サービス 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 信用金庫の新しいビジネスモデル策定~女性職員の活躍動向:ニュース&トピックス http://www3.keizaireport.com/report.php/RID/531675/?rss 中小企業 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 銀行・証券業界 2023年の見通し~顧客の変化や新たなプレーヤーとの競争、社会の変革に対応するための準備が肝要 http://www3.keizaireport.com/report.php/RID/531711/?rss 顧客 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 事例を知る:ワンチームで推進する銀行DX。Trust Baseが描く金融の未来とは? http://www3.keizaireport.com/report.php/RID/531714/?rss trustbase 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 2023年4月の注目イベント~植田総裁の下で日銀新体制始動、金融緩和の修正はあるか http://www3.keizaireport.com/report.php/RID/531731/?rss 三井住友 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 KAMIYAMA Seconds!:金融機関がゆらぐと経済が悪化するのか? http://www3.keizaireport.com/report.php/RID/531732/?rss kamiyamaseconds 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 米・スイス発金融不安の政策・経済面への影響~金融危機は当面回避されるも中期的な影響は不透明:Kanno Report http://www3.keizaireport.com/report.php/RID/531733/?rss kannoreport 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 異次元緩和の意義について考える~黒田日銀10年の振り返り:基礎研レポート http://www3.keizaireport.com/report.php/RID/531743/?rss 異次元緩和 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 金利操作のシナリオ考察~FRB/USモデルによるシミュレーション:経済金融フォーカス http://www3.keizaireport.com/report.php/RID/531760/?rss frbus 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 2023年の全人代のポイントと金融行政の改革:経済金融フォーカス http://www3.keizaireport.com/report.php/RID/531761/?rss 総合研究所 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 【注目検索キーワード】バイオものづくり http://search.keizaireport.com/search.php/-/keyword=バイオものづくり/?rss 検索キーワード 2023-03-30 00:00:00
金融 金融総合:経済レポート一覧 【お薦め書籍】1300万件のクチコミでわかった超優良企業 https://www.amazon.co.jp/exec/obidos/ASIN/4492534628/keizaireport-22/ 転職 2023-03-30 00:00:00
金融 日本銀行:RSS 国内銀行の資産・負債等(銀行勘定)(2月末) http://www.boj.or.jp/statistics/asli_fi/ald2302.pdf 銀行 2023-03-30 08:50:00
金融 日本銀行:RSS 貸出約定平均金利(2月) http://www.boj.or.jp/statistics/dl/loan/yaku/yaku2302.pdf 貸出 2023-03-30 08:50:00
ニュース BBC News - Home Pope Francis in hospital with respiratory infection https://www.bbc.co.uk/news/world-europe-65117270?at_medium=RSS&at_campaign=KARANGA vatican 2023-03-29 23:36:59
ニュース BBC News - Home Easter holiday travel: No repeat of airport chaos, industry says https://www.bbc.co.uk/news/business-65113682?at_medium=RSS&at_campaign=KARANGA airport 2023-03-29 23:14:32
ニュース BBC News - Home Sister of Christopher Alder on 25-year fight for answers https://www.bbc.co.uk/news/uk-england-humber-65087872?at_medium=RSS&at_campaign=KARANGA burial 2023-03-29 23:45:40
ニュース BBC News - Home Paul O'Grady: How Lily Savage defied police who raided a pub with rubber gloves https://www.bbc.co.uk/news/entertainment-arts-65115059?at_medium=RSS&at_campaign=KARANGA officer 2023-03-29 23:36:45
ニュース BBC News - Home Arsenal: How Gunners delivered on potential in Champions League https://www.bbc.co.uk/sport/football/65120035?at_medium=RSS&at_campaign=KARANGA europe 2023-03-29 23:08:20
ビジネス 東洋経済オンライン 東大生の親が「不合格だったわが子」にかけた一言 受験不合格は「失敗」ではなく「挑戦の勲章」だ | 学校・受験 | 東洋経済オンライン https://toyokeizai.net/articles/-/662921?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2023-03-30 08:30:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)