Get Started
...
Flutter beta
Flutter beta Quick Start
welcome to the flutter quick start guide! this guide will help you clone, set up, and run the ditto demo flutter application from a public github repository by the end of this quick start, you will have successfully run the ditto task application on either ios, android, or both, and will be able to sync data without needing an internet connection prerequisites installed code editor (preferably visual studio code or android studio) flutter sdk installed on your machine git installed on your machine ditto portal account with a ditto application (see docid\ ymrwjnmdrnovdt3qbptxk ) for android development a ndroid studio installed on your machine a physical android device or android emulator f or ios development macos with the latest version of xcode installed a physical ios device or ios simulator 1\ clone the repository clone the repository from github open a terminal and run the following command git clone https //github com/getditto/demoapp flutter navigate to the project directory cd demoapp flutter 2\ install dependencies install the necessary dependencies flutter pub get this command will fetch all the dependencies listed in the pubspec yaml file 3\ configure ditto obtain app id and playground token log in to your https //portal ditto live navigate to your application and obtain the app id and playground token (see docid\ ymrwjnmdrnovdt3qbptxk for more details) update flutter application with ditto credentials open the lib/main dart file or the appropriate configuration file where ditto is initialized update the code with the app id and playground token from your ditto application const appid = "replace me with your app id"; const token = "replace me with your playground token"; 4\ run the application run the application on android ensure you have an android emulator running or connect a physical device run the following command in the terminal from the root of the application flutter run select the android emulator/device \[1] sdk gphone64 arm64 (emulator 1234) \[2] mac designed for ipad (mac designed for ipad) please choose one (or "q" to quit) run the application on ios ensure you have an ios simulator running or connect a physical ios device run the following command in the terminal and select the ios simulator/device flutter run select the ios simulator/device \[1] iphone 15 (5a8dfe9d 7bf0 4bee a675 a056b64cee3f) \[2] mac designed for ipad (mac designed for ipad) please choose one (or "q" to quit) 5\ sync data offline launch the application on multiple devices, emulators, or simulators disconnect from your current wifi network while keeping wifi enabled on the device to allow for lan connections note android emulators and ios simulators can only form offline connections with each other due to platform limitations create new tasks and update the done status of existing tasks