In the first part of this series, you learned how to create a basic app in Flutter. There you learned only basic structure, some interactivity and you used only Stateless widgets. In this tutorial, you will develop an Expense App to learn state, stateful widget, regular expression,
TextField widget, and some concepts in Flutter.
I tried my best to add minimal features so you could easily understand the building blocks for this app.
You will develop the following app with me:
Web scraping is the process of gathering data automatically by a computer program from different websites. There are many use cases. Many businesses created solely based on web scarping.
There are different ways to scrape any website using Python. Using the BeautifulSoup library, Scrapy Framework, and Selenium library with a headless web browser.
Using BeautifulSoup or Scrapy Framework, we can easily scrap a normal website where the server generates the HTML files. …
In my last article, I discussed how to reverse engineering an android app. If you did no reverse engineering before just do it to learn how easy it is to reverse an android app to the original source code.
In this article, I will let you know how to protect an Android app from reverse engineering.
If you want to protect your app from reverse engineering free, unfortunately, there is no such tool. What you can do is to make it difficult for the attacker.
There is a detailed article from android developer website where you can know how to do it. You just have to update your project-level
build.gradle file. …
Whether you develop a native app or hybrid app, state management is a common issue to address. To manage a global state in a flutter app, Provider is one of the most popular libraries.
In this tutorial, I will guide you, how to use the provider in a flutter app. We will build the following application with 3 screens:
From the settings screen, a user can change the font size, which will affect the home and about the screen. And we will implement this feature using the Provider state management library.
I assume you have a basic understanding of the Flutter framework. …
Starting this year when I started developing my iOS app using SwiftUI, I decided to support both light and dark mode. In this tutorial, I will teach you, how you could implement the light and dark mode user interface in SwiftUI based iOS application.
Let’s create a new XCode project. Select SwiftUI for the Interface.
Now replace all the code in
ContentView.swift file and write the following code on there. You will create a screen with two card views.
If you run the app, or just see the preview, you will see the following user interface for the app now. …
If you’re an iOS developer like me, you should use Fastlane to deploy your app fast. It saves time — a lot of time. Over many years I have been using Fastlane to deploy my apps and our company’s app. Today I will guide you on how to set up and use Fastlane to deploy an iOS app to Apple Store faster.
I assume you know, how to deploy an iOS app manually on the App Store.
Fastlane is founded by Felix Krause. The tool is open-sourced. You can use it to automate deployment for both iOS and Android applications in your own machine or using it with other web services for continuous integration. …
After a long wait, I have been working to update one of my existing iOS game app “Word Search”. I developed the app using UIKit. I wanted to update some parts, and one of the modules I want to update is my other portfolio apps UI. So basically,
I want to integrate my other app’s SwiftUI based module in my existing UIKit based app.
In this demo, you see from the main screen, I go to another screen, and then finally the “Our Apps” screen, which is created using SwiftUI for my other app Onedic.
It is very easy to integrate SwiftUI within UIKIt using
UIHostingController class. But to integrate that first import
SwiftUI in your
UIKit based module. …
In SwiftUI, normally you define
@State property in a
View which is technically called a property wrapper. It is designed to store the states of a single View. Normally, the common pattern you use like this:
So if the
title will change, the
body will recompute again to show the updated data. It is automatic.
But sometimes, what you may want to do, you want to pass a value in the initializer and assign the value to the state.
But you see, the problem is, if you want to do that, there will be an error shown.
SwiftUI doesn’t allow to access and work with the
@Stateproperties outside the closure assigned within the body property. …
This is a common problem when I first started developing SwiftUI based iOS application on iOS 13. I wanted to hide the arrow indicator for
NavigationLink within a list. There is no modifier to hide the arrow, unfortunately. So here are the solutions for iOS 13, iOS 14, and iOS 14.2.
Basically using a
ZStack we layered the item. So within the
ZStack the first backside item is the
NavigationLink line 20, and the top item is a
HStack line 26. The
HStack contains a
Text view and it hides the backside
So on iOS 14, if we add a
.buttonStyle(PlainButtonStyle()) it works.
So here is the final solution that works on iOS 13, iOS 14, iOS 14.2. Besides using the layer hack, you have to additionally add a
.opacity(0.0) to hide the arrow.