|
30 | 30 | > Please note that this project's code is not meant for beginners! If you're just getting started with flutter I recommend you to explore some ToDo and basic setState apps and get yourself familiar with react eco-system becuase in this project intermediate and advance implementations are use which will confuse you and won't help much in terms of learning. |
31 | 31 |
|
32 | 32 | - `init.js` initialize default settings like styles, theme & API. |
33 | | -- `UI.dart` provides constant for building responsive UI. |
34 | | -- `blocs/` Intially I was going to implement Rest APIs but that seemed unnecessary & a lot of work So I'll probably remove `blocs/` in futrue. |
35 | | -- `configs/AppDimensions.dart` this is the magical file. It provides the app with: |
36 | | - - My custom size unit based on device's width, height & pixel density. |
37 | | - - Responsive containers. |
38 | | - - Padding multiplier unit (I learned it with experience instead of using 1,2,3px should use multiplier. it helps maintain constancy around the app). |
39 | | -- `Widgets/Screen.dart` This widget is necessary when building a new screen. |
40 | | - - configure theme & font style. |
41 | | - - You can show popUps. `final screenKey = GlobalKey<ScreenState>();` & `this.screenKey.showPopUp(message: "your message");` |
42 | | - - It also recieve a `belowBuilder` parameter which builds custom background (This enables us to build Parallax, Animated background & Any thing you could imagine in background). you can find an example in `Screens/Download/Download.dart` |
43 | | -- Code structure is pretty much simple. |
44 | | - - Don't import anything form ScreenA in ScreenB. |
45 | | - - Don't import anthing from Screen/Widget in universal files. |
46 | | - - Don't import anthing from ScreenA specific Widget in universal files. |
47 | | - - Each Screen will have `Dimensions.dart` where you can write Screen's responsive logic. |
48 | | - - I didn't use snake_case in naming convention just becuase I don't prefer it. |
49 | | - - I use `this` for class's properties & methods I helps keep track of vriables & functions. |
50 | 33 |
|
51 | 34 |
|
52 | 35 | ## Show support |
|
61 | 44 |
|
62 | 45 | ## Download |
63 | 46 |
|
64 | | -<div id="downloads"> |
65 | | - <a href="https://play.google.com/store/apps/details?id=com.onemdev.flutter_ui_challenges"> |
66 | | - <img src="https://raw.githubusercontent.com/hackerhgl/flutter-ui-designs/master/.github/assets/google-play.png" alt="Play Store badge" width="200" /> |
67 | | - </a> |
68 | | - <a href="https://github.com/hackerhgl/flutter-ui-designs/releases/latest/download/app-release.apk"> |
69 | | - <img src="https://raw.githubusercontent.com/hackerhgl/flutter-ui-designs/master/.github/assets/android.png" alt="Android badge" width="200" /> |
70 | | - </a> |
71 | | -</div> |
72 | 47 |
|
73 | 48 | ## License |
74 | 49 |
|
|
0 commit comments