Stateful Widget vs Stateless Widget — Flutter

Stateful Widget

Sample Code — Creating a Stateful widget

Stateless Widget

Sample Code — Creating a Stateless widget

Summary

Stateful Widget

Stateless Widget

Undergraduate-Faculty of Information Technology | University of Moratuwa | Sri Lanka