Posts

What is Dart-doc?

Image
  If you’re managing a production-level app then it’s really important to have documentation of the entire code base. It helps reduce effort of new developers and helps other developers understand the functionality, features, coding structure, and logic involved. Documenting classes and functions: Documenting your dart code is really easy, you just have to add your documented sentences after /// , and it will be shown whenever you hover over that class or function. Image below explains to you how: Interestingly, it accepts markdown and you can even make links in your comments to other classes. Look at this detailed guide for more. Generating API Reference Documentation: Have you ever seen this dart documentation? Ever wondered how this is created? Flutter provides you a command to create this documentation for your dart code base, in just a minute. Use these commands to generate one for yourself: flutter pub global activate dartdoc flutter pub global run dartdoc . The . means, t...

Flutter on Desktop

Image
Flutter provides support for compiling a native Windows, macOS, or Linux desktop app. Flutter’s desktop support also extends to plugins—you can install existing plugins that support the Windows, macOS, or Linux platforms.   Requirements To compile a desktop application, you must build it on the targeted platform: build a Windows application on Windows, a macOS application on macOS, and a Linux application on Linux.   Additional macOS requirements For macOS desktop development, you need the following in addition to the Flutter SDK:   Xcode   CocoaPods if you use plugins Additional Windows requirements For Windows desktop development, you need the following in addition to the Flutter SDK: Visual Studio 2022 When installing Visual Studio, select the "Desktop development with C++" workload, including all of its default components, to install the necessary C++ toolchain and Windows SDK header files. Set up On Windows, desktop support is enabled on Flutter 2.10 or highe...

Flutter CI / CD

Image
  There is a lot of thought process and engineering practice behind the deployment strategy and the whole DevOps process (Automation, Monitoring). We won't go into those details, but we will start with something simple. Automated Pipeline for deployments. Before going in we have to see the basics of Continuous Integration & Continuous Deployment. What exactly is CI/CD, anyway? CI/CD stands for Continuous Integration and Continuous Delivery (or Continuous Deployment), it is about how an Integrated code on a shared repository is used to release software to production multiple times a day with the help of automation. CI CD is a philosophy, a way of doing things, that makes your life easier. It stands for Continuous Integration and depending on whether you give it permission to Deploy your app automatically, the CD could stand for “Continuous Delivery” or “Continuous Deployment”. CI CD solutions allow you to catch problems faster, while they’re still relatively easy to fix. It runs...