Reddit Verification Tool
What I am going to do in this project is to build a verification tool for an R4R subreddit.
Purpose
The aim is to closely tie one account to one person in an R4R, and give confidence to people who see their posts.
Vision
To push forward good community members who are looking to meet like-minded people.
26/07/2022
https://stackoverflow.com/questions/54951254/implementing-mobile-step-progress-bar-from-the-material-guidelines
Pages:
Username field page [Step 1 of 4]
Verification type page [Step 2 of 4]
Photo verification [Step 3 of 4]
Voice verification [Step 3 of 4]
Description [Step 4 of 4]
Completed
Landing Page
Things to implement:
Firebase Firestore
Image/audio/file upload (take photo?)
Record audio
3 random words generator
https://api.flutter.dev/flutter/widgets/PageView-class.html
Full page of UI elements in a viewport.
Create pages and a controller and you can swipe through the pages as a full-screen UI.
To move to a page on a button click, pass the PageController to the Widget that is the page and call PageController.animateToPage() under the onPressed parameter.
27/07/2022
Goals
Complete navigation
Fields
Text form field to enter text. To style, use the Decoration parameter with the InputDecoration widget.
Autofocus to jump to the field and prefixText to have a string before the text is entered.
For a centered column, i.e. Column widget as a child to Center widget, set the Column main axis to min.
28/07/2022
Goals
Finish styling Verification Selection screen
Data model
To center both horizontally and vertically in a Listview, wrap in Center widget and set shrinkWrap: true in the listview parameters.
29/07/2022
Goals
Style Add Photo Screen
Understand Layout a little bit better
Start with the overall layout of the page, using Expanded and Container. These can be bounded, i.e. of a set height and width, or unbounded, i.e. to fill the space available.
30/07/2022
Goals
Create the Add Photo Screen (UI Only)
Get the Layout right in the first few attempts
Creating a Padding, with a child of Column will give the screen, then creating Expanded widget within and with the parameter flex to size in comparison to each other.
Using Expanded is useful for layout when things need to be in proportion.
Image.network(url) is for images on the internet.
A button can be set to disabled by putting null in the onPressed parameter. A Ternary Operator can be used to make a button available or not based on a state of type boolean.
02/08/2022
To change an icon for an IconButton on press, use a Ternary Operator for the icon paramter conditionally on a boolean state.
03/08/2022 - nothing so … 04/08/2022
Goals
Image capture/upload
Audio record
Cloud storage of files
Data Model
Reddit username
verification file
description
verified, default=false