Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Car Booking App Sign Up Screen #104

Merged
merged 3 commits into from
May 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Neumorphism/musicplayer/lib/core/consts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ class AppColors {
static const darkBlue = Color(0XFF5880ff);
static const lightBlueShadow = Color(0XAA92aeff);
}


3 changes: 3 additions & 0 deletions Neumorphism/musicplayer/lib/pages/list_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import 'package:music_player/models/music_model.dart';
import 'package:music_player/pages/detail_page.dart';
import 'package:music_player/widgets/custom_button.dart';

import '../widgets/main_drawer.dart';

class ListPage extends StatefulWidget {
@override
_ListPageState createState() => _ListPageState();
Expand Down Expand Up @@ -33,6 +35,7 @@ class _ListPageState extends State<ListPage> {
backgroundColor: AppColors.mainColor,
),
backgroundColor: AppColors.mainColor,
drawer: MainDrawer(),
body: Stack(
children: [
Column(
Expand Down
143 changes: 143 additions & 0 deletions Neumorphism/musicplayer/lib/pages/settings_page.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
import 'package:flutter/material.dart';

import 'package:settings_ui/settings_ui.dart';

import '../core/consts.dart';
import '../widgets/custom_button.dart';

class SettingsScreen extends StatefulWidget {


@override
_SettingsScreenState createState() => _SettingsScreenState();
}

class _SettingsScreenState extends State<SettingsScreen> {
bool isSwitched = false,
isLockApp = true,
isFingerPrintEnabled = false,
isChangePass = false;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Color(0XFF92aeff),
title: Text("Settings"),
centerTitle: true,
leading: CustomButton(
size: 20,
onTap: () {
Navigator.of(context).pop();
},
child: Icon(
Icons.arrow_back,
color: AppColors.styleColor,
),
) ,
/* actions: [
CustomButton(
size: 30,
onTap: () {
Navigator.of(context).pop();
},
child: Icon(
Icons.notifications,
color: AppColors.styleColor,
),
),
],*/
),
body: SettingsList(
sections: [
SettingsSection(
margin: EdgeInsetsDirectional.all(10),
title: Text('Common',
style: TextStyle(color: Color(0XFF92aeff), fontWeight: FontWeight.bold),
),


tiles: [
SettingsTile(
title: Text('Language'),

leading: Icon(Icons.language),
onPressed: (BuildContext context) {},
),
SettingsTile.switchTile(
title: Text('Use System Theme'),
leading: Icon(Icons.phone_android),
//switchValue: isSwitched,
onToggle: (value) {
setState(() {
isSwitched = value;
});
}, initialValue: null,
),
],
),
SettingsSection(
margin: EdgeInsetsDirectional.all(10),
title: Text('Account',
style: TextStyle(color: Color(0XFF92aeff), fontWeight: FontWeight.bold),
),

tiles: [
SettingsTile(
title: Text('Phone number'),
leading: Icon(Icons.phone),
onPressed: (BuildContext context) {},
),
SettingsTile(
title: Text('Email'),
leading: Icon(Icons.email),
onPressed: (BuildContext context) {},
),
SettingsTile(
title: Text('Sign out'),
leading: Icon(Icons.logout),
onPressed: (BuildContext context) {},
),
],
),
SettingsSection(
margin: EdgeInsetsDirectional.all(10),
title: Text('Security',
style: TextStyle(color: Color(0XFF92aeff), fontWeight: FontWeight.bold),
),

tiles: [
SettingsTile.switchTile(
title: Text('Lock app in background'),
leading: Icon(Icons.phonelink_lock_sharp),
// switchValue: isLockApp,
onToggle: (value) {
setState(() {
isLockApp = value;
});
}, initialValue: null,
),
SettingsTile.switchTile(
title: Text('Use fingerprint'),
leading: Icon(Icons.fingerprint),
// switchValue: isFingerPrintEnabled,
onToggle: (value) {
setState(() {
isFingerPrintEnabled = value;
});
}, initialValue: null,),
SettingsTile.switchTile(
title: Text('Change Password'),
leading: Icon(Icons.lock_rounded),
// switchValue: isChangePass,
onToggle: (value) {
setState(() {
isChangePass = value;
});
}, initialValue: null,),
],
),
],
),
);
}
}
145 changes: 145 additions & 0 deletions Neumorphism/musicplayer/lib/widgets/drawer_body.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
import 'dart:ui';

//import 'package:exercise_app/screens/SignIn_Screen.dart';
//import 'package:exercise_app/screens/profile_screen.dart';
import 'package:flutter/material.dart';

import '../core/consts.dart';
import '../pages/settings_page.dart';
import 'custom_button.dart';
//import 'package:exercise_app/screens/Settings_screen.dart';


class DrawerBody extends StatelessWidget {


@override
Widget build(BuildContext context) {
return Container(
color: Color(0XFF92aeff),
child: Column(
children: <Widget>[
ListTile(
leading: CustomButton(
onTap: () {},
size: 30,
child: Icon(
Icons.person,
color: AppColors.styleColor,
),
),
title: Text(
'Profile',
style: TextStyle(
fontSize: 18,
color: AppColors.styleColor,
),
),
onTap:(){

/* Navigator.of(context).pushReplacement(
MaterialPageRoute(builder: (context) => ProfileScreen()) );*/
}
),
const SizedBox(
height: 15,
),
ListTile(
leading: CustomButton(
onTap: () {},
size: 30,
child: Icon(
Icons.favorite,
color: AppColors.styleColor,
),
),
title: Text(
'Favourite',
style: TextStyle(
fontSize: 18,
color: AppColors.styleColor,
),
),
onTap:(){

}

),
const SizedBox(
height: 15,
),
ListTile(
leading: CustomButton(
onTap: () {},
size: 30,
child: Icon(
Icons.settings,
color: AppColors.styleColor,
),
),
title: Text(
'Settings',
style: TextStyle(
fontSize: 18,
color: AppColors.styleColor,
),
),
onTap:(){
Navigator.of(context).pushReplacement(
MaterialPageRoute(builder: (context) => SettingsScreen()) );
}),
const SizedBox(
height: 15,
),
ListTile(
leading: CustomButton(
onTap: () {},
size: 30,
child: Icon(
Icons.privacy_tip,
color: AppColors.styleColor,
),
),
title: Text(
'Privacy',
style: TextStyle(
fontSize: 18,
color: AppColors.styleColor,
),
),
onTap:(){

}),
const SizedBox(
height: 15,
),
ListTile(
leading: CustomButton(
onTap: () {},
size: 30,
child: Icon(
Icons.logout,
color: AppColors.styleColor,
),
),

title: Text(
'Logout',
style: TextStyle(
fontSize: 18,
color: AppColors.styleColor,
),
),
onTap:(){

/* Navigator.of(context).pushReplacement(
MaterialPageRoute(builder: (context) => LoginScreen()) ); */
}
)
],
),
);
}


}
47 changes: 47 additions & 0 deletions Neumorphism/musicplayer/lib/widgets/drawer_header.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

import 'package:flutter/material.dart';

import '../core/consts.dart';
import 'custom_button.dart';

class MyHeaderDrawer extends StatefulWidget {
@override
_MyHeaderDrawerState createState() => _MyHeaderDrawerState();
}

class _MyHeaderDrawerState extends State<MyHeaderDrawer> {

@override
Widget build(BuildContext context) {
return Container(
color: Color(0XFF92aeff),
width: double.infinity,
height: 120,
padding: EdgeInsets.only(top: 10.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
CustomButton(
image: 'assets/logo.jpg',
size: 60,
borderWidth: 6,
onTap: () {
/* Navigator.of(context).push(
MaterialPageRoute(
builder: (_) => DetailPage(),
),
);*/
},
),
const SizedBox(
height: 3,
),
Text(
"Dezenix Music Player",
style: TextStyle(color: AppColors.styleColor, fontSize: 18,fontWeight: FontWeight.bold),
),
],
),
);
}
}
23 changes: 23 additions & 0 deletions Neumorphism/musicplayer/lib/widgets/main_drawer.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import 'package:flutter/material.dart';
import 'drawer_header.dart';
import 'drawer_body.dart';
class MainDrawer extends StatelessWidget {


@override
Widget build(BuildContext context) {
return Drawer(
backgroundColor: Color(0XFF92aeff),
child: Column(

children: [
MyHeaderDrawer(),
const SizedBox(
height: 10,
),
DrawerBody(),
],
),
);
}
}
Loading