Posts

Showing posts from April, 2020

Local Authentication with Flutter

Image
In this post I am going to implement this feature using flutter and dart. First of all download and install flutter SDK from https://flutter.dev/docs/get-started/install/windows Create a project: Enter this command in command prompt  "flutter create signin_flutter" Importing packages: Now import the plug-in local_auth  by adding the following line to your project's pubspec.yaml file. "loacl_auth: ^0.4.0+1." you can also find latest version on  https://pub.dev/packages/local_auth Adding Permissions: In order to have authentication working correctly on android we have to update AndriodManifesto.xml file to include the USE_FINGERPRINT permission. "<uses-permission android:name="android.permission.USE_FINGERPRINT"/>" we can find the file here Your project directory...\signin_flutter\android\app\src\main\AndroidManifest.xml Adding local Authentication: import local_auth package in main.dart file

Internationalizing Flutter apps

Image
localization in Flutter apps: Hi friends,  today I implement localization in flutter, A few resources to get you started if this is your first Flutter project: Lab: Write your first Flutter app Cookbook: Useful Flutter samples Flutter's default language is English, To add or support other languages, we must specify additional MaterialApp properties, and also include packages " flutter_localizations " and " easy_localization: ^2.1.0+2  ", currently this package supports 77 languages. 1. Create a project: Enter the command in terminal  flutter create localization It will create a brand new project with some files in current directory. 2. Add Dependencies: Add the packages as a dependency to your pubspec.yaml file: dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter easy_localization: ^2.1.0+2 3. Import  library: import 'dart:developer'; import 'dart:ui'