Creating a data layer in Flutter