Nerd For Tech
Published in

Nerd For Tech

Solid Principles in a Flutter

These principles are commonly used by software engineers and provide developers with several benefits.

S: The Single Responsibility Principle (SRP)

Bad Practice

Good Practice

O: The Open-Closed Principle (OCP)

Bad Practice

Good Practice

L: The Liskov Substitution Principle (LSP)

Bad Practice

Good Practice

I: The Interface Segregation Principle (ISP)

Bad Practice

Good Practice

D: The Dependency Inversion Principle (DIP)

Bad Practice

Good Practice

--

--

NFT is an Educational Media House. Our mission is to bring the invaluable knowledge and experiences of experts from all over the world to the novice. To know more about us, visit https://www.nerdfortech.org/.

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
Shirsh Shukla

Mobile Application Developer | GDG Speaker | Technical Blogger at medium | community member at StackOverflow | Organizer @FlutterIndore