S.O.L.I.D Principles in Dart

S.O.L.I.D Principles in Dart

Become a better developer by using S.O.L.I.D principles…..

It’s an acronym for 5 design principles for writing code which is maintainable, scalable and easier to understand. These principles are given by Bob. C Martin (uncle bob) more familiar to the developer world.

Things To Understand Firstly :

What Problem these S.O.L.I.D principles solved?

  1. working with the legacy code.
  2. Re-reading the code multiple times to get to the part you need to change
  3. Hard to understand what the method does. jumping multiple methods of the same name
  4. spending a lot more time to fix a minor bug

Basically, we spend a lot more time reading than writing code.

1. Single Responsibility principle

As it’s clear from its name single responsible. A class should only be responsible for one thing that means a class could change for only one reason.

Let’s first see the bad practise in which maintenance is not pleasant. Because of all the things in one single place validation, getRequest, painting.

class Result

  checkResult(int rollno)
    bool isRollnoValidate = isRollnovalidate();

      ResultModel resultModel = searchResult();
      return "Invalid rollno";



    return true;
// get request
    // return result;
 showResult(ResultModel model)
    // show result in pleasant way 


class ResultModel


flutter-widget flutter

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Google's Flutter 1.20 stable announced with new features - Navoki

Google has announced new flutter 1.20 stable with many improvements, and features, enabling flutter for Desktop and Web

What is Flutter and why you should learn it?

Flutter is an open-source UI toolkit for mobile developers, so they can use it to build native-looking Android and iOS applications from the same code base for both platforms. Flutter is also working to make Flutter apps for Web, PWA (progressive Web-App) and Desktop platform (Windows,macOS,Linux).

Flutter: Stateful Widget vs. Stateless Widget

Flutter is all about widgets. If you want to develop an application you have to first decide which widgets you are going to use. Each widget has its state. Flutter: Stateful Widget vs. Stateless Widget

Adobe XD plugin for Flutter with CodePen Tutorial

Recently Adobe XD releases a new version of the plugin that you can use to export designs directly into flutter widgets or screens.

Flutter Container Widget - Flutter Widget Essentials #2

Flutter Container Widget - Flutter Widget Essentials #2