Password Validation With All Special Characters
Stack Secrets
by Sovit Poudel
2y ago
A quick post on how to build a regex for password validation with all special characters. Criteria for Password Validation The enforced password requirements are as follows: Must be at least 8 characters in length Must contain at least 1 character Must contain at least 1 digit Must contain at least 1 special character Most importantly, all the special characters specified here should be handled by the regex. Regex For Password Validation Here’s the final regex string which meets all of the mentioned criteria. ^(?=.*?[a-zA-Z])(?=.*?[0-9])(?=.*?[!@#\][:()"`;+\-'|_?,.</\\>=$%}{^& ..read more
Visit website
Environment Configuration In Flutter App
Stack Secrets
by Sovit Poudel
3y ago
In this post, we will go over how we can configure development, staging and production environment configuration in Flutter app. We will create different environment configurations and load the right environment during runtime. Introduction To Environment Configuration In any app development process, we need to create different environments to run the app in. For example, if you are developing against your local environment and connecting with API server on local machine, then your api url needs to point to localhost. Similarly, if you are testing the app in a staging environment which is a re ..read more
Visit website
Implement Sign In With Google In Flutter apps
Stack Secrets
by Manash Dhakal
3y ago
In these series of posts, we will learn how to implement sign in with Google in Flutter applications. Since there are lots of things to cover, we have broken down the series into multiple posts. Introduction Most mobile apps need some sort of user authentication mechanism. Since most users have a Google account, sign in with Google is needed almost in all apps. Image Courtesy Web So, this post series covers the fundamental component for any mobile application. We will implement Google Sign-In with the help of Firebase backend. Article Series For Sign In With Google In Flutter We will divide th ..read more
Visit website
Implement Google Sign-In In Flutter
Stack Secrets
by Manash Dhakal
3y ago
After setting up everything in Firebase for Google Sign-In in flutter, we are now ready to code. First of all, in the pubspec.yaml file, we will add the following dependencies by searching from pub.dev: (i). firebase_auth (ii). google_sign_in Implementation of Google Sign-In in Flutter After you have completed the log in design in flutter, we will implement the following for Google Sign-In. (I). Step I: Create a separate file for the code of the google sign in authentication. In the first step, import the packages which are necessary and which holds the information. (II). Step II: Instance f ..read more
Visit website
Setup Firebase For iOS Project For Google Sign-In
Stack Secrets
by Manash Dhakal
3y ago
In this post, we will setup Firebase for iOS Project for Google Sign-In functionality. For the previous post on setting up a new project in Firebase, click here. Steps To Setup Firebase For iOS Project I. Click on the IOS icon option. II. After selecting IOS we have to provide IOS bundle name, application nickname which is optional and App Store Id which is optional. III. For the IOS bundle name, go to your flutter application project –>ios–>Runner.xcodeproj–>project.pbxproj. You will find the bundle name with Product_Bundle_Identifier. Copy the same package name and paste it in the ..read more
Visit website
Setup Firebase For Android Project For Google Sign-In
Stack Secrets
by Manash Dhakal
3y ago
In this post, we will setup Firebase for Android Project for Google Sign-In functionality. For the previous post on setting up a new project in Firebase, click here. Steps To Setup Firebase For Android Project I. Click on the android icon option. II. After selecting android we have to provide android package name, application nickname which is optional and Debug signing certificate SHA-1. III. For the Android package name, go to your flutter application project –>android–>app–>src–>AndroidManifest.xml. In the very second line you will find the package name. Copy the same package ..read more
Visit website
Setup Firebase For Flutter Apps
Stack Secrets
by Manash Dhakal
3y ago
In this tutorial, we will setup a project in Firebase for Flutter apps. This is the first part of the series where we are building the functionality in Flutter to allow Google Sign-In in our mobile apps. Introduction To Firebase Firebase is a fully managed backend infrastructure for developing mobile applications which is backed by Google. Firebase comes with lots of useful features such as: Authentication, Realtime Database, Machine Learning, Crashlytics, In-app Notifications, In-app Event Reporting, and much more! Steps To Setup Firebase For Flutter Apps I. Go to the firebase official webs ..read more
Visit website
Configure Gitlab To Deploy Flutter App Via CodeMagic
Stack Secrets
by Sovit Poudel
3y ago
In this post, we will learn to configure Gitlab to deploy Flutter app via CodeMagic API. We will create a Gitlab CI/CD configuration file that can trigger manual release from Gitlab pipeline. Introduction CodeMagic is the most popular CI/CD platform in the Flutter Developer’s community to automate app deployment. With CodeMagic, one can deploy apps to both Android and Apple app stores with just a few clicks. Gitlab also has a powerful CI/CD support built-in. So how can we connect the Gitlab CI/CD pipeline with CodeMagic for one-click deployment of Flutter apps from Gitlab itself? CodeMagic API ..read more
Visit website
Learn UML Class Diagram In 15 Minutes
Stack Secrets
by Sovit Poudel
3y ago
In this post, we will learn about UML class diagram. What is a UML diagram? How to read or create UML diagram representing different classes and relationships? Introduction to UML Class Diagram UML stands for Unified Modeling Language. It offers a way to visualize a system’s architecture in a diagram. UML class diagram describes the structure of a system by showing the system’s classes, attributes, properties, methods and the relationship between various objects of the system. A UML Class Diagram Basics Of A UML Class Diagram We can derive a lot of information from a UML class diagram. Attribu ..read more
Visit website
LeetCode: Determine Attendance Reward Problem
Stack Secrets
by Sovit Poudel
3y ago
In this post, we will learn to solve a problem from LeetCode mock questions. The task is to determine attendance reward for a student should be rewarded based on his attendance records. The solution here is written in C# language. Problem Description From LeetCode You are given a string representing an attendance record for a student. The record only contains the following three characters: ‘A’ : Absent.  ‘L’ : Late. ‘P’ : Present.  A student could be rewarded if his attendance record doesn’t contain more than one ‘A’ (absent)or more than two continuous ‘L ..read more
Visit website

Follow Stack Secrets on FeedSpot

Continue with Google
Continue with Apple
OR