Skip to content

kohrongying/daily-ui-flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

daily_ui

A new Flutter application.

How to Run

Dev: flutter run -d chrome Test: flutter test test/<testName>

Daily UI Challenge

There are available as pens on CodePen as well.

Day 001 - Sign Up

Signup

  • Learnt how to use Form fields and TextEditingController
  • Used Stack to stack the colors on the left hand side

Day 002 - Credit Card Checkout

creditcard

  • New classes: Tooltip, InputFormatter, RaisedButton

Day 003 - Landing Page

landingpage

Day 004 - Calculator

calculator

  • Calculator logic with TDD first
    • Simplify first (don't compute long expressions, just one operator per operation)
    • Do happy path first then edge cases
    • Show error for division error
  • Edge Cases to consider
    • 5 + -4 => 5 - 4
    • 5 / -4 => 5 / -4
    • 1 + 2 * 6 = 13
    • 5..2 => 5.2
    • 5.20.1 => 5.2
    • 5 / 0 => how to handle divide by zero error
  • Handling overflow with ellipsis
  • New Classes: GridView

Day 006

profile

  • New Classes: CustomScrollView, SliverAppBar, FlexibleSpacer, SliverGrid, SliverList, Hero, DecoratedBox

Day 007

settings

  • New Classes: ListView, ListTile, Toggling Dark and Light Mode

Day 008

404

  • New Classes: FadeTransition

Day 010

socialshare

  • New Classes: AnimatedPosition, AnimatedSwitcher

AnimatedPosition was pretty much hardcoded though.

Day 011

flashmessage

  • New Classes: Dialog, Transform, SizedBox.expand

Day 015

switch

  • New Classes: SlideTransition

Day 014

countdown

  • New Classes: DateTime, Duration

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages