Paulina Szklarska
1 min readApr 12, 2019

--

Hi Emmanueal!

Actually, you can’t have multiple stores as it’s supposed to be only one source of truth. If you need some separation of your data stored in state, you can split them into multiple smaller objects, so e.g.:

class AppState {
UserData userData;
ShopContent shopContent;
PaymentInfo paymentInfo;
}

--

--

Paulina Szklarska
Paulina Szklarska

Written by Paulina Szklarska

Flutter GDE / Flutter & Android Developer / blogger / speaker / cat owner / travel enthusiast

No responses yet