Skip to content

Commit 3de1df4

Browse files
authored
Feature/m22 (bukunmialuko#37)
* Created page file * Added assets * Added page route * Added page route * Updated contributing.md * Added page button * Updated contributing doc * Updated contributing doc * Updated contributing doc * Updated contributing doc
1 parent 1413965 commit 3de1df4

File tree

13 files changed

+140
-14
lines changed

13 files changed

+140
-14
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,20 @@ We gladly accept contributions via GitHub pull requests.
88

99
2. [Fork the project:](https://github.com/bukunmialuko/flutter_ui_kit_obkm.git)
1010

11-
3. Create a Branch with the naming convention
12-
13-
e.g:
11+
3. Create a Branch with the style :
1412
feature/M20
1513
or
1614
feature/W5
1715

18-
M -> Implies that you are working on a mobile screen
19-
W -> Implies that you are working on a web screen
20-
5 -> Implies that you are working on page 5
21-
20 -> Implies that you are working on page 20
16+
- M: Implies that you are working on a mobile screen
17+
18+
- W: Implies that you are working on a web screen
19+
20+
- 5: Implies that you are working on page 5
21+
22+
- 20: Implies that you are working on page 20
2223

23-
Branch categories : [feature, bugfix, chore]
24+
Branch categories : [feature, bugfix, chore]
2425

2526
4. Once a screen is implemented,
2627
- Create a Draft PR with title e.g "Mobile Screen 20" or "Web Screen 20".

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ A Simple UI Kit.
1313

1414
<br />
1515

16-
## build apk
16+
## Contributing
17+
[To contribute, read short guidelines](https://github.com/bukunmialuko/flutter_ui_kit_obkm/blob/main/CONTRIBUTING.md)
18+
19+
## Build apk
1720
flutter build apk
1821

1922
## 📸 Banner
@@ -121,5 +124,3 @@ Follow for update. 😃
121124

122125
## Development version :hammer:
123126
- [APK (direct download)](https://github.com/bukunmialuko/flutter_ui_kit_obkm/releases/download/v1.0.1/app-release.apk)
124-
125-

assets/svg/22/business_center.svg

Lines changed: 3 additions & 0 deletions
Loading

assets/svg/22/donut_small.svg

Lines changed: 3 additions & 0 deletions
Loading

assets/svg/22/download_done.svg

Lines changed: 3 additions & 0 deletions
Loading

assets/svg/22/fab.svg

Lines changed: 4 additions & 0 deletions
Loading

assets/svg/22/home.svg

Lines changed: 3 additions & 0 deletions
Loading

assets/svg/22/supervisor_account.svg

Lines changed: 3 additions & 0 deletions
Loading

lib/src/mobile_ui/22/page_22.dart

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
import 'package:flutter/material.dart';
2+
import 'package:flutter_screenutil/flutter_screenutil.dart';
3+
import 'package:flutter_svg/flutter_svg.dart';
4+
5+
class Page22 extends StatefulWidget {
6+
const Page22({Key? key}) : super(key: key);
7+
8+
@override
9+
State<Page22> createState() => _Page22State();
10+
}
11+
12+
class _Page22State extends State<Page22> {
13+
@override
14+
Widget build(BuildContext context) {
15+
return Scaffold(
16+
body: SafeArea(
17+
child: SingleChildScrollView(
18+
padding: EdgeInsets.only(
19+
top: 20.h,
20+
left: 20.w,
21+
right: 20.w,
22+
),
23+
child: Column(
24+
children: [],
25+
),
26+
),
27+
),
28+
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
29+
extendBody: true,
30+
floatingActionButton: Container(
31+
width: 76.w,
32+
height: 76.w,
33+
decoration: BoxDecoration(
34+
// color: Colors.blue,
35+
36+
color: Color(0xffD0D0D0),
37+
borderRadius: BorderRadius.circular(76.w),
38+
),
39+
child: Center(
40+
child: SvgPicture.asset(
41+
"assets/svg/21/pause_circle_outline.svg",
42+
height: 56.w,
43+
width: 56.w,
44+
fit: BoxFit.fill,
45+
),
46+
),
47+
),
48+
bottomNavigationBar: ClipRRect(
49+
borderRadius: BorderRadius.only(
50+
topLeft: Radius.circular(16.r), topRight: Radius.circular(16.r)),
51+
child: BottomAppBar(
52+
shape: CircularNotchedRectangle(),
53+
color: Color(0xffD0D0D0),
54+
child: IconTheme(
55+
data: IconThemeData(color: Theme.of(context).colorScheme.onPrimary),
56+
child: SizedBox(
57+
height: 90.h - MediaQuery.of(context).viewPadding.bottom,
58+
child: Row(
59+
mainAxisAlignment: MainAxisAlignment.spaceBetween,
60+
children: <Widget>[
61+
Padding(
62+
padding: EdgeInsets.only(left: 84.w),
63+
child: Icon(
64+
Icons.fast_rewind,
65+
color: Colors.black,
66+
),
67+
),
68+
Padding(
69+
padding: EdgeInsets.only(right: 84.w),
70+
child: Icon(
71+
Icons.fast_forward,
72+
color: Colors.black,
73+
),
74+
),
75+
],
76+
),
77+
),
78+
),
79+
),
80+
),
81+
);
82+
}
83+
}

lib/src/mobile_ui/root/root.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,14 @@ class RootWidget extends StatelessWidget {
195195
.to(routeName: MobileRoutes.pg21);
196196
},
197197
),
198+
PageButtonWidget(
199+
page: 22,
200+
onPressed: () {
201+
GetIt.I
202+
.get<NavigationService>()
203+
.to(routeName: MobileRoutes.pg22);
204+
},
205+
),
198206
PageButtonWidget(
199207
page: 24,
200208
onPressed: () {

0 commit comments

Comments
 (0)