2019130032 - Fedora Yoshe Juandy
NOTE! Ignore master branch
Long story short:
- committed at campus using Wi-Fi
- tried to sync at campus using said Wi-Fi
- Wi-Fi error
- everything got messed up
- my fever-addled brain decided just to move the branch
- present time:
- Cannot get parent key id1
Firebase realtime database cannot get parent id from its child. For plan's operations, every operation has a parentKey for reference.
- Cannot getChildren at snapshot2
For FirebaseAnimatedList, there is supposed to be a method getChildren() in android; unfortunately there is no such thing in Flutter and has already been an issue for quite awhile. So the 'Report' part of application cannot simply just itterate the whole thing and return the very last one.
- Problems with changing states
The date has to be clicked twice to update "Total" in daily "Transactions". Must have been a problem with updating the state and cannot found "onChildChanged" or similar in FirebaseAnimatedList to update it each time adding a new transaction (plus cannot get the index to manually update it at the last one).
Firebase Realtime Database Setup3
npm install -g firebase-tools
- Firebase login
dart pub global activate flutterfire_cli
- Add the path to env
- Make Firebase account
- Create new app in Firebase
For Android:
- Choose Android after setup (the middle green Android icon)
- Enter app package name from android/app/build.gradle (com.example.something) + nickname. While there, change the minSdkVersion to 21 and target to 28
- Download google-services.json to android/app
- In android/build.gradle (NOTE: DIFF FROM BEFORE), add classpath in dependencies
- In build.gradle (android/app/build.gradle), add apply together with the rest (change into the same format) [THE REST LATER IN yaml]
flutter-packages-get
For iOS:
- Choose iOS (most left one)
- Enter name from ios/Runner.xcodeproj/project.pbxproj (PRODUCT_BUNDLE_IDENTIFIER)
- Download plist to ios/Runner
flutterfire configure
flutter pub add firebase_core
[CAN ADD MANUALY TO yaml by Add Firebase to your Flutter appflutter pub add firebase_database
flutterfire configure
- In main.dart add
import 'package:firebase_core/firebase_core.dart';
andimport 'firebase_options.dart';
- add
final Future<FirebaseApp> _fbApp = Firebase.initializeApp();
to MyApp and change the app not to const flutterfire configure
- PPB class notes and past projects
- Flutter documentation
- For main layout UI
- For horisontal scrolling calendar
- table_calendar 3.0.8
- For basic Realtime Database CRUD
- For getting last month; for horisontal scrolling calendar
- For YearPicker widget
- For changing DatePicker colors
- For TimePicker widget
- For rupiah currency formatting
- For scroll view with some parts fixed
- For base MVC in Realtime Database
- How to change app icon; cannot use SVG format
- For future builds
- For difference between two dates
- For modified alert dialog
- For FlatButton widget alternative
- For converting String to TimeOfDay
- For decimals precise places
- AboutDialog
- General UI/UX for expense trackers
- Main UI/UX layout for this money tracker
- Finance app colors
- Finance app color palletes
Green for choices, quantity, quality, and growth. Also money, of course.
- Icon is made by Adobe Express and edited by Figma