Skip to content

Commit

Permalink
settings 3
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar committed Jan 2, 2020
1 parent 5b55293 commit 3f5835a
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ The code for Springy Widget is taken and refactored from (https://github.com/mat
<img height="480px" src="screenshots/auth3-1.png"> <img height="480px" src="screenshots/auth3-2.png"> <img height="480px" src="screenshots/login7.png"> <img height="480px" src="screenshots/signup2.png"> <img height="480px" src="screenshots/login6.png"> <img height="480px" src="screenshots/auth2.png"> <img height="480px" src="screenshots/login5.png"> <img height="480px" src="screenshots/auth1.png"> <img height="480px" src="screenshots/login4.png"> <img height="480px" src="screenshots/login1.png"> <img height="480px" src="screenshots/login2.png"> <img height="480px" src="screenshots/login3.gif"> <img height="480px" src="screenshots/signup1.png">

## Settings UIs
<img height="480px" src="screenshots/settings1.png"> <img height="480px" src="screenshots/settings2.png">
<img height="480px" src="screenshots/settings1.png"> <img height="480px" src="screenshots/settings2.png"> <img height="480px" src="screenshots/settings3.png">

## Dashboard UIs
<img height="480px" src="screenshots/dash1.png"> <img height="480px" src="screenshots/dash2.png"> <img height="480px" src="screenshots/dash3.png">
Expand Down
3 changes: 3 additions & 0 deletions lib/core/presentation/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import 'package:flutter_ui_challenges/src/pages/misc/musicplayer.dart';
import 'package:flutter_ui_challenges/src/pages/onboarding/intro6.dart';
import 'package:flutter_ui_challenges/src/pages/settings/settings1.dart';
import 'package:flutter_ui_challenges/src/pages/settings/settings2.dart';
import 'package:flutter_ui_challenges/src/pages/settings/settings3.dart';
import 'package:flutter_ui_challenges/src/pages/todo/todo_home3.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:flutter_ui_challenges/src/pages/todo/todo2.dart';
Expand Down Expand Up @@ -141,6 +142,8 @@ final List<dynamic> pages = [
path: SettingsOnePage.path),
SubMenuItem("Settings Two", SettingsTwoPage(),
path: SettingsTwoPage.path),
SubMenuItem("Settings Three", SettingsThreePage(),
path: SettingsThreePage.path),
]),
MenuItem(title: "Motorbike App", icon: Icons.list, items: [
SubMenuItem("Home Page", BikeHomePage(), path: BikeHomePage.path),
Expand Down
126 changes: 126 additions & 0 deletions lib/src/pages/settings/settings3.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
import 'package:cached_network_image/cached_network_image.dart';
/**
* Author: Damodar Lohani
* profile: https://github.com/lohanidamodar
*/

import 'package:flutter/material.dart';
import 'package:flutter_ui_challenges/core/presentation/res/assets.dart';

class SettingsThreePage extends StatelessWidget {
static final String path = "lib/src/pages/settings/settings3.dart";
final TextStyle headerStyle = TextStyle(
color: Colors.grey.shade800,
fontWeight: FontWeight.bold,
fontSize: 20.0,
);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.grey.shade200,
appBar: AppBar(
backgroundColor: Colors.green,
title: Text(
'Settings',
),
),
body: SingleChildScrollView(
padding: const EdgeInsets.all(16.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
"ACCOUNT",
style: headerStyle,
),
const SizedBox(height: 10.0),
Card(
elevation: 0.5,
margin: const EdgeInsets.symmetric(
vertical: 4.0,
horizontal: 0,
),
child: Column(
children: <Widget>[
ListTile(
leading: CircleAvatar(
backgroundImage: NetworkImage(avatars[4]),
),
title: Text("Damodar Lohani"),
onTap: () {},
),
_buildDivider(),
SwitchListTile(
activeColor: Colors.purple,
value: true,
title: Text("Private Account"),
onChanged: (val) {},
),
],
),
),
const SizedBox(height: 20.0),
Text(
"PUSH NOTIFICATIONS",
style: headerStyle,
),
Card(
margin: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 0,),
child: Column(
children: <Widget>[
SwitchListTile(
activeColor: Colors.purple,
value: true,
title: Text("Received notification"),
onChanged: (val) {},
),
_buildDivider(),
SwitchListTile(
activeColor: Colors.purple,
value: false,
title: Text("Received newsletter"),
onChanged: null,
),
_buildDivider(),
SwitchListTile(
activeColor: Colors.purple,
value: true,
title: Text("Received Offer Notification"),
onChanged: (val) {},
),
_buildDivider(),
SwitchListTile(
activeColor: Colors.purple,
value: true,
title: Text("Received App Updates"),
onChanged: null,
),
],
),
),
Card(
margin: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 0,),
child: ListTile(
leading: Icon(Icons.exit_to_app),
title: Text("Logout"),
onTap: (){},
),
),
const SizedBox(height: 60.0),
],
),
),
);
}

Container _buildDivider() {
return Container(
margin: const EdgeInsets.symmetric(
horizontal: 8.0,
),
width: double.infinity,
height: 1.0,
color: Colors.grey.shade300,
);
}
}
Binary file added screenshots/settings3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3f5835a

Please sign in to comment.