This repository has been archived by the owner on Jan 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
edda73c
commit 7f56bee
Showing
53 changed files
with
1,555 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,3 +45,5 @@ app.*.map.json | |
/android/app/debug | ||
/android/app/profile | ||
/android/app/release | ||
|
||
constants.dart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,54 @@ | ||
# demo_todo_with_flutter | ||
# 🔖 Todo With Flutter | ||
|
||
A new Flutter project. | ||
A simple todo app built with Flutter and Appwrite | ||
|
||
## Getting Started | ||
## 🎬 Getting Started | ||
|
||
This project is a starting point for a Flutter application. | ||
Appwrite is an end-to-end backend server for Web, Mobile, Native, or Backend apps packaged as a set of Docker microservices. Appwrite abstracts the complexity and repetitiveness required to build a modern backend API from scratch and allows you to build secure apps faster. | ||
|
||
A few resources to get you started if this is your first Flutter project: | ||
### 🤘 Install Appwrite | ||
|
||
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) | ||
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) | ||
Follow our simple [Installation Guide](https://appwrite.io/docs/installation) to get Appwrite up and running in no time. You can either deploy Appwrite on your local machine or, on any cloud provider of your choice. | ||
|
||
For help getting started with Flutter development, view the | ||
[online documentation](https://docs.flutter.dev/), which offers tutorials, | ||
samples, guidance on mobile development, and a full API reference. | ||
``` | ||
Note: If you setup Appwrite on your local machine, you will need to create a public IP so that your hosted frontend can access it. | ||
``` | ||
|
||
We need to make a few configuration changes to your Appwrite server. | ||
|
||
1. Add a new Flutter App (Android or iOS or both) in Appwrite: | ||
|
||
![Console - Add platform](docs/Console%20-%20Add%20platform.png) | ||
|
||
1. Android - `io.appwrite.demo_todo_with_flutter` | ||
2. iOS/Mac OS - `io.appwrite.demoTodoWithFlutter` | ||
|
||
2. Create a project in the Appwrite Console with id `demo-todos`. | ||
|
||
3. Use the [Appwrite CLI](https://appwrite.io/docs/command-line) to deploy the required collections. | ||
|
||
```shell | ||
appwrite deploy collections | ||
``` | ||
|
||
### 🚀 Run locally | ||
|
||
Follow these instructions to run the demo app locally. | ||
|
||
```shell | ||
git clone https://github.com/appwrite/demo-todo-with-flutter.git | ||
cd demo-todo-with-flutter | ||
``` | ||
|
||
Make `lib/constant.dart` using `lib/constants.dart.example` as a template. | ||
|
||
Now run the following commands and you should be good to go 💪🏼 | ||
|
||
```shell | ||
flutter pub get | ||
flutter run | ||
``` | ||
|
||
## 🤕 Support | ||
|
||
If you get stuck anywhere, hop onto one of our [support channels in discord](https://discord.com/invite/GSeTUeA) and we'd be delighted to help you out 🤝 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
android/app/src/main/kotlin/com/example/demo_todo_with_flutter/MainActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"projectId": "demo-todo", | ||
"projectName": "Demo Todo", | ||
"collections": [ | ||
{ | ||
"$id": "todos", | ||
"$createdAt": "", | ||
"$updatedAt": "2022-10-20T21:25:50.163+00:00", | ||
"$permissions": [ | ||
"create(\"users\")" | ||
], | ||
"databaseId": "default", | ||
"name": "Todos", | ||
"enabled": true, | ||
"documentSecurity": true, | ||
"attributes": [ | ||
{ | ||
"key": "content", | ||
"type": "string", | ||
"status": "available", | ||
"required": true, | ||
"array": false, | ||
"size": 65535, | ||
"default": null | ||
}, | ||
{ | ||
"key": "isComplete", | ||
"type": "boolean", | ||
"status": "available", | ||
"required": false, | ||
"array": false, | ||
"default": false | ||
} | ||
], | ||
"indexes": [] | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.