Securing API Keys In Flutter Using C++ and dart ffi

What is dart ffi?


Starter Project

Enabling Camera




@override
Widget build(BuildContext context) {
return Stack(
children: [
// Works as Drawer
Scaffold(
backgroundColor: const Color(0xff22a6b3),
body:const…


Default app layout

void main() {
runApp(MyApp());
}

class MyApp extends StatelessWidget {
// This widget is…


1- Adding dependency

dependencies:
google_sign_in: ^4.5.1
$ flutter pub get
dependencies {
...
// Add the google services classpath
classpath 'com.google.gms:google-services:4.3.0'}
// ADD THIS AT THE…


Payam Asefi

Flutter developer and a nature lover. Besides coding I like playing video games, watching movies, and reading mangas.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store