Skip to content

Commit

Permalink
Added back navigation to some screens
Browse files Browse the repository at this point in the history
  • Loading branch information
bukunmialuko committed Apr 10, 2022
1 parent 98b6d74 commit abf9b55
Show file tree
Hide file tree
Showing 12 changed files with 289 additions and 362 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 30
compileSdkVersion 31

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand All @@ -45,7 +45,7 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.flutter_ui_kit_obkm"
minSdkVersion 16
targetSdkVersion 30
targetSdkVersion 31
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.3.50'
ext.kotlin_version = '1.6.20'
repositories {
google()
mavenCentral()
Expand Down
Binary file modified art/screenshots/page_42.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions lib/src/mobile_ui/27/page_27.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_svg/svg.dart';
import 'package:get_it/get_it.dart';
import 'package:google_fonts/google_fonts.dart';

import '../../../res/asset_images.dart';
import '../../navigation/navigation_service.dart';

Expand Down Expand Up @@ -102,7 +102,12 @@ class _Page27State extends State<Page27> {
return SizedBox(width: 20.w);
},
itemBuilder: (context, index) {
return WorkoutCard();
return GestureDetector(
onTap: () {
GetIt.I.get<NavigationService>().back();
},
child: WorkoutCard(),
);
},
),
SizedBox(width: 20.w),
Expand Down
77 changes: 45 additions & 32 deletions lib/src/mobile_ui/33/page_33.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get_it/get_it.dart';
import 'package:google_fonts/google_fonts.dart';

import '../../navigation/navigation_service.dart';

class Page33 extends StatefulWidget {
const Page33({Key? key}) : super(key: key);

Expand Down Expand Up @@ -75,44 +78,54 @@ class _Page33State extends State<Page33> {
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
width: 90.w,
height: 30.h,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(30.h),
border: Border.all(color: Colors.black, width: 1.w),
),
child: Center(
child: Text(
"ADD FRIEND",
style: GoogleFonts.workSans(
textStyle: TextStyle(
fontSize: 12.sp,
color: Colors.black,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600,
GestureDetector(
onTap: () {
GetIt.I.get<NavigationService>().back();
},
child: Container(
width: 90.w,
height: 30.h,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(30.h),
border: Border.all(color: Colors.black, width: 1.w),
),
child: Center(
child: Text(
"ADD FRIEND",
style: GoogleFonts.workSans(
textStyle: TextStyle(
fontSize: 12.sp,
color: Colors.black,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600,
),
),
),
),
),
),
SizedBox(width: 8.w),
Container(
width: 90.w,
height: 30.h,
decoration: BoxDecoration(
color: Color(0xff262626),
borderRadius: BorderRadius.circular(30.h),
),
child: Center(
child: Text(
"FOLLOW",
style: GoogleFonts.workSans(
textStyle: TextStyle(
fontSize: 12.sp,
color: Colors.white,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600,
GestureDetector(
onTap: () {
GetIt.I.get<NavigationService>().back();
},
child: Container(
width: 90.w,
height: 30.h,
decoration: BoxDecoration(
color: Color(0xff262626),
borderRadius: BorderRadius.circular(30.h),
),
child: Center(
child: Text(
"FOLLOW",
style: GoogleFonts.workSans(
textStyle: TextStyle(
fontSize: 12.sp,
color: Colors.white,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w600,
),
),
),
),
Expand Down
42 changes: 25 additions & 17 deletions lib/src/mobile_ui/34/page_34.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_ui_kit_obkm/src/res/colors.dart';
import 'package:get_it/get_it.dart';
import 'package:google_fonts/google_fonts.dart';

import '../../navigation/navigation_service.dart';

class Page34 extends StatefulWidget {
const Page34({Key? key}) : super(key: key);

Expand Down Expand Up @@ -168,23 +171,28 @@ class _Page34State extends State<Page34> {
],
),
),
Container(
height: 30.h,
width: 89.w,
decoration: BoxDecoration(
color: AppColors.black,
borderRadius: BorderRadius.circular(15.r),
),
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 0),
child: Center(
child: Text(
"FOLLOW",
style: GoogleFonts.workSans(
textStyle: TextStyle(
fontSize: 12.sp,
color: AppColors.white,
fontWeight: FontWeight.w600,
GestureDetector(
onTap: () {
GetIt.I.get<NavigationService>().back();
},
child: Container(
height: 30.h,
width: 89.w,
decoration: BoxDecoration(
color: AppColors.black,
borderRadius: BorderRadius.circular(15.r),
),
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 0),
child: Center(
child: Text(
"FOLLOW",
style: GoogleFonts.workSans(
textStyle: TextStyle(
fontSize: 12.sp,
color: AppColors.white,
fontWeight: FontWeight.w600,
),
),
),
),
Expand Down
Loading

0 comments on commit abf9b55

Please sign in to comment.