Skip to main content

Posts

Showing posts with the label dart

how to make a google signin in flutter

 In this article I will describe how  add a simple google sign  button in your flutter project. Here the Steps to make a Google Signin: St go to your  flutter project folder and then run  Run   ./android/gradlew signingReport    Just Cool Down

Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null)

Hey Friend,  This article is about how to resolve the issue of `  Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null)` . In this article i will describe in breifly how to resolve this issue while running flutter. When did I got this Error: This is my issue which i was running linux desktop app. In my case firebase_core dependency was not working  1st Method : What worked for me I was building my project for linux Desktop App ,Now instread I  run my app for both Android and web My app and it worked fine for my case. My Advise , Run your app on other Platforms too. 2nd Method : As the Error is due to dependency try to clean your project and allow to rebuild your app from base of your project. Here is my issue which I have rose in github: https://github.com/firebase/flutterfire/discussions/12077 commands you can use are  Conclusion: While building your First Flutter project.These are tiny errors to get know...

Is Dart easy for Beginners?

Lets look up few question on dart which help us to understand whether dart is easy or not. Introduction: Dart syntax are derived from java,c++ and mostly from javascript.It has c like syntax .Hence it is beginner friendly untill you understand the concept of classes. Hence here are few Questions on Dart programming language. Dart Question Question on Dart 1) For what iterable Collection in dart? Ans : The iterable Collection in dart :The  Iterable  class—for example  List  and  Set.  Iterables are basic building blocks for all sorts of Dart applications, and you’re probably already using them, even without noticing. This codelab helps you make the most out of them. 2 )What are type of loops in dart programming? Ans :/ for in loop ,switch Dart programming language supports several types of loops for controlling the flow of execution. Here are the main types of loops in Dart: For Loop: The for loop is used to iterate a specific number of times. It consists...