Skip to main content

Posts

Showing posts from December, 2020

Flutter Commands List

  Command to check flutter version: D:\>flutter --version Output: Flutter 1.20.4 • channel unknown • unknown source Framework • revision fba99f6cf9 (3 months ago) • 2020-09-14 15:32:52 -0700 Engine • revision d1bc06f032 Tools • Dart 2.9.2  To generate an app bundle, run:         flutter build appbundle --target-platform android-arm,android-arm64,android-x64         Learn more on:      To split the APKs per ABI, run:         flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi         Learn more on :   Resolve Conflicts:  flutter packages pub run build_runner watch --delete-conflicting-outputs Here is some useful command List:  run  flutter help <command>   to get command related  information Command Name Example Comments analyze ...

Flutter run time based jobs - Background Job

  Run time based job in flutter Time based job are useful when you want to do job work in background upon on some time interval or even once without letting user know. There is two easiest way to accomplish it. Timer Corn Timer Class:  A count-down timer that can be configured to fire once or repeatedly.       Timer  _timer;      _callBack ( Timer  t) {     {       _ doMyWork ( );        print ( "timer called" );        t. cancel ();  //  canceled  the time on 1st call only, execute only once     }    @override    void   initState () {      super . initState ();     _timer =  Timer . periodic ( Duration (minutes:  1 ), _callBack);   }   ...

Flutter: INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.example.app signatures do not match previously installed version; ignoring

Flutter Error: Launching lib\main.dart on Nokia 4 2 in debug mode... lib\main.dart:1 ✓ Built build\app\outputs\flutter-apk\app-debug.apk. Installing build\app\outputs\flutter-apk\app.apk... Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install D:\app\outputs\flutter-apk\app.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.example.app signatures do not match previously installed version; ignoring!] Error launching application on Nokia 4 2. Solution 1: You need to uninstall it because you are using a different signature than the original. If it is not working it might be because it is still installed for another user on the device. To completely uninstall, go to Settings -> Apps -> yourApp -> Options (the three dots on top right) -> Uninstall for all users Solution 2:  run follwoing command that will solve   your problem adb uninstall "yourApp" example: adb uninstall "com.example.myapp"

Which Azure service would you deploy to detect a sudden spike in network traffic?

  Which Azure service would you deploy to detect a sudden spike in network traffic? Network Performance Monitor solution: Network Performance Monitor is a cloud-based hybrid network monitoring solution that provide capabilities to  monitor network performance between various points in your network infrastructure. You can leverage this service to: Monitor network connectivity to service and application endpoints Monitor the performance of Azure ExpressRoute.   Network Performance Monitor offers three broad capabilities: Performance Monitor Service Connectivity Monitor ExpressRoute Monitor   You can easily detect these kinds of issues by looking at a trend chart. The issue appears as a sudden spike in network latency or packet loss. To investigate the issue, use the Network State Recorder control to view the network snapshot and topology for that point in time when the issue occurred.   Credit: MSDN  Trend Chart Add Solution to monitor your Work space: Add th...

Flutter: OS Error: Connection reset by peer, errno = 104

  Some time developers face issue this issue  in development mode there could anything that cause this issue Flutter Error: SocketException: OS Error: Connection reset by peer, errno = 104 Reason  It may be your ISP blocking the connection Flutter corrupted build package etc.. Solutions 1: To solve this issue run the following commands Step 1: flutter clean  Step 2: flutter pub cache repair Solutions 2: Use different VPN or Connect with your internet service provider to unblock respective URL Flutter Error:  some developer face this issue running in debug mode Write error: ssl=0x709bd56fc8: I/O error during system call, Connection reset by peer Solutions 1: To solve this issue run the following commands Step 1: flutter clean  For example: D:\Mobile\myApp>flutter clean Deleting build... 4,739ms (!) Deleting .dart_tool... 13ms Deleting Generated.xcconfig...

What Is Flutter?

  What Is Flutter?   Google Flutter is an open-source UI software development kit. It facilitated to develop applications for Android, iOS, Linux, Mac, Windows, Google Fuchsia, and the web from a single codebase.  The major components of Flutter: Dart platform Flutter engine Foundation library Design-specific widgets  Flutter has good documentation along with great guidelines, from here you can setup flutter development env . What is Dart? Dart is a programming language for cross platforms apps. It is getting popular and can be used to build mobile, desktop, server, and web applications. Dart is an object-oriented, class-based, garbage-collected language with C-style syntax. Dart can compile to either native code or JavaScript.  Dart platform  Flutter apps are written and developed in the Dart language. On Windows, macOS, and Linux Flutter runs in the Dart virtual machine, which features a just-in-time execution engine. While writing a...

'ng' is not recognized as an internal or external command,

  Error: 'ng' is not recognized as an internal or external command Reason for the issue is: Either Env variable is not setup properly or  angular cli is not installed globally so  Solutions: open command prompt, press (ctr + r) and type cmd  run this command "npm install -g @angular/cli" and all set for you to just verify go to cmd and type "ng" you will get all the details as the problem has be solved.