Author name: krustylab

flutter firebase app featured image

Flutter Firebase app: Implement Google Sign-In

Let’s create a Flutter Firebase app and connect Firebase to the Flutter project. This is crucial, especially if you plan to use Firebase services like authentication, Firestore, or Firebase Cloud Messaging. Here’s a guide on how to connect Firebase in a Flutter project: Step 1: Create a Firebase project Step 2: Register your app with Firebase Step 3: Add Firebase SDK to your Flutter project dependencies: flutter: sdk: flutter firebase_core: ^1.0.0 firebase_auth: ^3.0.0 # If you plan to use Firebase Authentication cloud_firestore: ^3.0.0 # If you plan to use Firestore Step 4: Initialize Firebase in your Flutter app import ‘package:flutter/material.dart’;import ‘package:firebase_core/firebase_core.dart’; Initialize Firebase in the main() function before running the app: void main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(); runApp(MyApp());} Ensure you add the Google services plugin at the bottom of the android/app/build.gradle file (just before the last line }): apply plugin: ‘com.google.gms.google-services’ On iOS, ensure you add the following in the ios/Runner/AppDelegate.swift file: import UIKitimport Flutterimport Firebase@UIApplicationMain@objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { FirebaseApp.configure() return super.application(application, didFinishLaunchingWithOptions: launchOptions) }} Step 5: Usage After these steps, Firebase is now connected to your Flutter project, and you can start using Firebase services such as Authentication, Firestore, etc., in your Flutter app. Here’s an example of how to use Google Sign-In with Firebase Authentication in your Flutter app: import ‘package:flutter/material.dart’;import ‘package:firebase_core/firebase_core.dart’;import ‘package:firebase_auth/firebase_auth.dart’;import ‘package:google_sign_in/google_sign_in.dart’;void main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(); runApp(MyApp());}class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: ‘Flutter Medium App’, theme: ThemeData( primarySwatch: Colors.blue, ), home: MyHomePage(), ); }}class MyHomePage extends StatefulWidget { @override _MyHomePageState createState() => _MyHomePageState();}class _MyHomePageState extends State<MyHomePage> { final FirebaseAuth _auth = FirebaseAuth.instance; final GoogleSignIn googleSignIn = GoogleSignIn(); Future<User?> _handleSignIn() async { try { final GoogleSignInAccount? googleSignInAccount = await googleSignIn.signIn(); final GoogleSignInAuthentication googleSignInAuthentication = await googleSignInAccount!.authentication; final AuthCredential credential = GoogleAuthProvider.credential( accessToken: googleSignInAuthentication.accessToken, idToken: googleSignInAuthentication.idToken, ); final UserCredential authResult = await _auth.signInWithCredential(credential); final User? user = authResult.user; assert(!user!.isAnonymous); assert(await user!.getIdToken() != null); final User? currentUser = await _auth.currentUser; assert(user!.uid == currentUser!.uid); print(‘signInWithGoogle succeeded: $user’); return user; } catch (error) { print(error); return null; } } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text(‘Flutter Medium App’), ), body: Center( child: ElevatedButton( onPressed: () { _handleSignIn() .then((User? user) => print(user)) .catchError((e) => print(e)); }, child: Text(‘Sign in with Google’), ), ), ); }} With these steps, Firebase is successfully integrated into your Flutter app, allowing you to use Firebase services such as Authentication, Firestore, etc.

Flutter Firebase app: Implement Google Sign-In Read More »

Just Walk Out cashierless technology

“Just Walk Out” cashierless technology Amazon is extending it.

Amazon is planning to roll out its “Just Walk Out” technology from its own Fresh grocery stores while also expanding it to other stores, such as Hudson News stores at airports and sports stadiums. Amazon is more than double the number of independent retailers utilizing its Just Walk Out cashierless technology. Thanks to technology, customers may pay using an app and leave the store without going to the cashier. At the moment, 140 stores are utilizing the technology. “Just Walk Out” cashierless technology. Customers may browse a store’s inventory using “Just Walk Out” technology without having to use a self-checkout kiosk or a typical cashier. Rather, buyers just take what they want and go out of the store, with the price promptly taken out of their Amazon account. them’ transactions are monitored by cameras and sensors, and the system charges them appropriately for their purchases using machine learning algorithms. With its Just Walk Out cashierless technology, Amazon is adding more than twice as many third-party stores. Thanks to technology, customers may pay without going to a cashier by just scanning an app and leaving the store. 140 stores are utilizing the technology at the moment. A few issues with Just Walk Out Numerous problems have beset “Just Walk Out,” such as customers not understanding how it operates, missing merchandise, and invoices that are occasionally sent hours or even days later than expected. As part of a wave of layoffs that has occurred over the previous few months, Amazon eliminated hundreds of positions in its physical retail division earlier this month. Read more about this story on BTW media.

“Just Walk Out” cashierless technology Amazon is extending it. Read More »

krustylab-homepage-featured-image

UI/UX

Our Team We offer top-quality and affordable UI/UX services at Krustylab. Our team of experts strive to provide exceptional solutions that cater to your business needs and exceed your expectations. Partnering with us ensures that you get the best value for your investment in user experience design.  View our Shot-let Rental service on Figma View our Gift Delivery Service on Figma Our UI/UX Team Trust us to deliver a memorable and delightful user experience for your customers that will set you apart from the competition. Don’t hesitate to get in touch, let’s work together. James Ify UI/UX Yunus Mckenzie UI/UX Gift O. UI/UX David Woko UI/UX

UI/UX Read More »

briggz app ready for beta testing

The Briggz app is open for Beta testing.

With the briggz app, you can manage your wealth with ease using Briggz. Calculate your net worth by tracking your assets, liabilities, debts, and credits. Transform your financial well-being with the effortless convenience and flexibility of Briggz. Track and manage your assets, liabilities, debts and credits with ease and insight to empower your financial decision-making process and enhance your overall financial stability. What is briggz-app? Briggz is a wealth and financial well-being management service that is entirely offline and secured on your mobile device. Ready to join other users to test Briggz? Click here to get started.

The Briggz app is open for Beta testing. Read More »

Free APIs You can use for your next Web/Mobile Application

Free, well-documented APIs is every developer\’s dream, finding a free API to extend the functionalities of your Application can be a daunting task for developers, especially when you are on a budget. This article brings you our best three free APIs you can use in your next project. Before we start with our list, I want first to remind us what an API is, an API is short for Application Programming Interface(API). It is basically a way for our application to communicate with another Application which exposes endpoints for developers to perform limited operations such as fetching data from their database, this in turn extends the functionalities of the client application(our Application), as we are using data from the server application\’s database. Most API Endpoints exposed for client Application is not free for developers\’ use; so it is a relief when we discover free APIs that we can use today in our Application (Web or Mobile) to give it extra superpowers! Movie Database Similar to IMDB, this site provides movie and television information. Get information about each title\’s title, year, Metascore rating, IMDB rating, release date, runtime, genre, directors, writers, actors, plot, awards, posters, and more. So developers looking for a free API to use for a movie review App for instance can easily integrate this API into their application Google Search Google search API is free, rapid, and easy to use. There are no captchas, so you can do as many searches as you like. Get search results with links, titles, and descriptions. Check the SERPs and scrape Google News. Spotify Fetch data from the Spotify music catalog, manage users\’ playlists and saved music, get recommendations, control Spotify Connect, and more. Based on simple REST principles, the Spotify Web API endpoints return JSON metadata about music artists, albums, and tracks, directly from the Spotify Data Catalogue, and what\’s more? it\’s free!!

Free APIs You can use for your next Web/Mobile Application Read More »

Top Pros and Cons of using Python in a Web App

One of the world’s most popular coding languages, Python was first conceptualized in the late ’80s, influenced by the ABC and Modula-3 languages. It has come a long way from its first release in 1991 to the 2.0 release when it became an open-source project, and to this day it is gathering a huge, professional community that is constantly improving the technology. Here are the Top Pros and Cons of using Python in a Web App. Pros of using in web development projects Less coding What can get better than having a programming language in place that doesn’t require much coding? Well, this is exactly what python has to offer. As far as web development is concerned, you can build prototypes and test out ideas using python. Wide community support Python boasts of the most prominent developer community across the globe. So, whenever you are stuck with any problem pertaining to web development, there is a solution out there. There are numerous python web development courses that are made available by the community members to make the web development process a lot easier. Syntax One of the many remarkable advantages of Python web development for server-side scripting is its simple syntax. The syntax is simple to the extent that it allows the users to execute the program algorithm based on user actions. Library support No wonder, library support is one of the core pillars of Python. This is because it can extensively build web apps, game apps, and also machine learning high-level apps. Python web development libraries make it way easier than ever to develop web applications. Frameworks Python frameworks deserve a special mention for the fact that they ensure rapid and swift web app development. Additionally, the developers need not worry much as they are quite easily accessible and simple to construct web applications. Cons of using in web development projects A little slow Some developers have raised issues pertaining to the slow pace of python.  It is worth noting that python makes use of an interpreter instead of a compiler, which normally other programming languages use for project development. This is the prime reason why python is a little slower when compared to other programming languages. Memory consumption When designing heavy web applications, it is observed that python consumes a lot of memory. In simple terms, python doesn’t work under restricted memory constraints. Game development issues Python is not considered to be the best programming language when the aim is game development. As a result of the slow building of applications, it is not advised to rely on python. Not ideal for mobile usage Certain web developers have complained that python is sluggish when used over a mobile device as compared to desktops or servers. Design restrictions It has been observed that Python poses certain design restrictions. In simple terms, this programming language is dynamically typed – meaning – it executes specific tasks during app runtime that would otherwise be completed in a statically typed language. It naturally puts some restrictions on the design.

Top Pros and Cons of using Python in a Web App Read More »

Shopping Cart