Skip to content
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: 1 addition & 1 deletion .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"google_places_picker","path":"D:\\\\program_app\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\google_places_picker-2.1.0+3\\\\","dependencies":[]},{"name":"image_picker","path":"D:\\\\program_app\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.6.7+22\\\\","dependencies":[]}],"android":[{"name":"flutter_plugin_android_lifecycle","path":"D:\\\\program_app\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\flutter_plugin_android_lifecycle-1.0.11\\\\","dependencies":[]},{"name":"google_places_picker","path":"D:\\\\program_app\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\google_places_picker-2.1.0+3\\\\","dependencies":[]},{"name":"image_picker","path":"D:\\\\program_app\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\image_picker-0.6.7+22\\\\","dependencies":["flutter_plugin_android_lifecycle"]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"google_places_picker","dependencies":[]},{"name":"image_picker","dependencies":["flutter_plugin_android_lifecycle"]}],"date_created":"2022-01-14 00:13:07.508169","version":"2.8.1"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"google_places_picker","path":"/Users/muhammadsaadullahshahid/developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+3/","native_build":true,"dependencies":[]},{"name":"image_picker","path":"/Users/muhammadsaadullahshahid/developer/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.7+22/","native_build":true,"dependencies":[]}],"android":[{"name":"flutter_plugin_android_lifecycle","path":"/Users/muhammadsaadullahshahid/developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.11/","native_build":true,"dependencies":[]},{"name":"google_places_picker","path":"/Users/muhammadsaadullahshahid/developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_places_picker-2.1.0+3/","native_build":true,"dependencies":[]},{"name":"image_picker","path":"/Users/muhammadsaadullahshahid/developer/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.7+22/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"google_places_picker","dependencies":[]},{"name":"image_picker","dependencies":["flutter_plugin_android_lifecycle"]}],"date_created":"2023-03-27 01:50:50.103075","version":"3.3.8"}
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# flutter-ui-nice

### :heart: Star :heart: the repo to support the project or :smile:[Follow Me](https://github.com/nb312).Thanks!
Facebook Page | Twitter | Medium | QQ Group
--- | --- | --- | ---
[Flutter Open ](https://www.facebook.com/flutteropen) | [NieBin](https://twitter.com/niebin_gg) | [Flutter Open](https://medium.com/flutteropen) | 963828159

| Facebook Page | Twitter | Medium | QQ Group |
| ----------------------------------------------------- | --------------------------------------- | ---------------------------------------------- | --------- |
| [Flutter Open ](https://www.facebook.com/flutteropen) | [NieBin](https://twitter.com/niebin_gg) | [Flutter Open](https://medium.com/flutteropen) | 963828159 |

# Contributors
~ | ~ | ~ | ~ | ~
--- | --- | --- | --- | ---
[NieBin](https://github.com/nb312)| [Echonox](https://github.com/echonox) | [Mahesh Jamdade](https://github.com/maheshmnj) |[edgartrem](https://github.com/edgartrem) | [srikanthbollojula](https://github.com/srikanthbollojula)
| [Yasin ilhan](https://github.com/kalismeras61) | [Çağrı Akgül](https://github.com/saturu) | [dndoanh](https://github.com/dndoanh) | [Waffulz](https://github.com/Waffulz) | [Santosh Prasad Sah](https://github.com/SahSantoshh)

| ~ | ~ | ~ | ~ | ~ |
| ---------------------------------------------- | ---------------------------------------- | ---------------------------------------------- | ----------------------------------------- | --------------------------------------------------------- | -------------------------------------------------------- |
| [NieBin](https://github.com/nb312) | [Echonox](https://github.com/echonox) | [Mahesh Jamdade](https://github.com/maheshmnj) | [edgartrem](https://github.com/edgartrem) | [srikanthbollojula](https://github.com/srikanthbollojula) |
| [Yasin ilhan](https://github.com/kalismeras61) | [Çağrı Akgül](https://github.com/saturu) | [dndoanh](https://github.com/dndoanh) | [Waffulz](https://github.com/Waffulz) | [Santosh Prasad Sah](https://github.com/SahSantoshh) | [Muhammad Saadullah Shahid](https://github.com/saadii00) |

# Contents

<img src="doc/01-signup-no.jpg"/>

<img src="doc/02-walk_through-no.jpg"/>
Expand All @@ -32,6 +36,7 @@ Facebook Page | Twitter | Medium | QQ Group
<img src="doc/10-camera-no.jpg"/>

# License

Copyright 2019 @NieBin

Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion 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 29
compileSdkVersion 31

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<application
android:name="io.flutter.app.FlutterApplication"
android:name="${applicationName}"
android:label="flutter_ui_shopping"
android:icon="@mipmap/ic_launcher">
<activity
Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
buildscript {
ext.kotlin_version = '1.3.50'
ext.kotlin_version = '1.7.20'
repositories {
google()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.android.tools.build:gradle:7.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
10 changes: 5 additions & 5 deletions ios/Flutter/flutter_export_environment.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=D:\program_app\flutter"
export "FLUTTER_APPLICATION_PATH=D:\program_data\flutter\flutter-ui-nice"
export "FLUTTER_ROOT=/Users/muhammadsaadullahshahid/developer/flutter"
export "FLUTTER_APPLICATION_PATH=/Users/muhammadsaadullahshahid/flutter-ui-nice"
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
export "FLUTTER_TARGET=lib\main.dart"
export "FLUTTER_TARGET=lib/main.dart"
export "FLUTTER_BUILD_DIR=build"
export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1"
export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=false"
export "TRACK_WIDGET_CREATION=true"
export "TREE_SHAKE_ICONS=false"
export "PACKAGE_CONFIG=.packages"
export "PACKAGE_CONFIG=.dart_tool/package_config.json"
49 changes: 26 additions & 23 deletions lib/page/navigation/common/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,33 @@ import 'package:flutter/material.dart';
import 'package:flutter_ui_nice/const/color_const.dart';

class HomePage extends StatelessWidget {
HomePage(this.onMenuPressed);
final VoidCallback onMenuPressed;
HomePage(this.onMenuPressed);
final VoidCallback onMenuPressed;

@override
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10.0),
gradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [YELLOW, GREEN, BLUE],
),
boxShadow: <BoxShadow>[
BoxShadow(
color: Colors.black26,
offset: Offset(2.0, 1.0),
blurRadius: 10.0,
)
],
),
child: Center(
child: RaisedButton(onPressed: onMenuPressed, child: Text("Open Menu"),),
),
);
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10.0),
gradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [YELLOW, GREEN, BLUE],
),
boxShadow: <BoxShadow>[
BoxShadow(
color: Colors.black26,
offset: Offset(2.0, 1.0),
blurRadius: 10.0,
)
],
),
child: Center(
child: ElevatedButton(
onPressed: onMenuPressed,
child: Text("Open Menu"),
),
),
);
}
}
}
127 changes: 69 additions & 58 deletions lib/page/navigation/navigation1/widgets/button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,67 +2,78 @@ import 'package:flutter/material.dart';
import 'package:flutter_ui_nice/const/color_const.dart';

class Button {
static Widget home(VoidCallback onPressed) =>
_buildButton(onPressed, "HOME", Icons.home);

static Widget home(VoidCallback onPressed) => _buildButton(onPressed, "HOME", Icons.home);
static Widget chat(VoidCallback onPressed, {int notification}) =>
_buildButton(onPressed, "CHAT", Icons.chat, notification: notification);

static Widget chat(VoidCallback onPressed, {int notification}) => _buildButton(onPressed, "CHAT", Icons.chat, notification:
notification);
static Widget feed(VoidCallback onPressed) =>
_buildButton(onPressed, "FEED", Icons.rss_feed);

static Widget feed(VoidCallback onPressed) => _buildButton(onPressed, "FEED", Icons.rss_feed);
static Widget profile(VoidCallback onPressed) =>
_buildButton(onPressed, "PROFILE", Icons.person);

static Widget profile(VoidCallback onPressed) => _buildButton(onPressed, "PROFILE", Icons.person);
static Widget settings(VoidCallback onPressed) =>
_buildButton(onPressed, "SETTINGS", Icons.settings);

static Widget settings(VoidCallback onPressed) => _buildButton(onPressed, "SETTINGS", Icons.settings);
static Widget _buildButton(
VoidCallback onPressed, String title, IconData icon,
{int notification}) {
if (notification != null) {
return Container(
child: Stack(
children: <Widget>[
_button(onPressed, title, icon),
Positioned(
top: 0.0,
right: 0.0,
child: Container(
decoration: BoxDecoration(
shape: BoxShape.circle, color: Colors.redAccent),
child: Padding(
padding: const EdgeInsets.all(6.0),
child: Text(
"$notification",
style: TextStyle(color: Colors.white),
),
),
),
),
],
),
);
} else {
return _button(onPressed, title, icon);
}
}

static Widget _buildButton(VoidCallback onPressed, String title, IconData icon, {int notification}) {
if (notification != null) {
return Container(
child: Stack(
children: <Widget>[
_button(onPressed, title, icon),
Positioned(
top: 0.0,
right: 0.0,
child: Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.redAccent
),
child: Padding(
padding: const EdgeInsets.all(6.0),
child: Text("$notification", style: TextStyle(color: Colors.white),),
),
),
),
],
),
);
} else {
return _button(onPressed, title, icon);
}
}

static Widget _button(VoidCallback onPressed, String title, IconData icon) => RaisedButton(
color: GREEN,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20.0)),
onPressed: onPressed,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 10.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Text(
title,
style: TextStyle(
fontSize: 18.0,
color: TEXT_BLACK,
),
),
SizedBox(width: 5.0,),
Icon(icon)
],
),
),
);

}
static Widget _button(VoidCallback onPressed, String title, IconData icon) =>
ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: GREEN,
shape:
RoundedRectangleBorder(borderRadius: BorderRadius.circular(20.0)),
),
onPressed: onPressed,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 10.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Text(
title,
style: TextStyle(
fontSize: 18.0,
color: TEXT_BLACK,
),
),
SizedBox(
width: 5.0,
),
Icon(icon)
],
),
),
);
}
31 changes: 18 additions & 13 deletions lib/page/shopping/ShopPageEighteen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ class _ShopEighteenState extends State<ShopPageEighteen> {
margin: EdgeInsets.only(top: topmargin, left: 10, right: 10),
child: new Theme(
data: new ThemeData(
primaryColor: Colors.black,
primaryColorDark: Colors.blue,
highlightColor: Colors.green,
textSelectionColor: Colors.blue[100] // text selection color
),
primaryColor: Colors.black,
primaryColorDark: Colors.blue,
highlightColor: Colors.green,
textSelectionTheme:
TextSelectionThemeData(selectionColor: Colors.blue[100]),
// text selection color
),
child: new TextField(
decoration: new InputDecoration(
prefixStyle: TextStyle(color: RED),
Expand All @@ -61,7 +63,8 @@ class _ShopEighteenState extends State<ShopPageEighteen> {
hintStyle: TextStyle(color: Colors.white),
// helperText: 'Keep it short, this is just a demo.',
labelText: name,
labelStyle: TextStyle(color: Colors.black), floatingLabelBehavior: FloatingLabelBehavior.never,
labelStyle: TextStyle(color: Colors.black),
floatingLabelBehavior: FloatingLabelBehavior.never,
// prefixText: 'Email ',
// suffixText: 'USD',
// suffixStyle: const TextStyle(color: Colors.green)
Expand Down Expand Up @@ -164,14 +167,16 @@ class _ShopEighteenState extends State<ShopPageEighteen> {
Container(
alignment: FractionalOffset.topCenter,
height: 80,
child: FlatButton(
color: Color.fromRGBO(7, 7, 7, 1),
textColor: Color.fromRGBO(198, 193, 124, 1),
child: TextButton(
style: TextButton.styleFrom(
backgroundColor: Color.fromRGBO(7, 7, 7, 1),
foregroundColor: Color.fromRGBO(198, 193, 124, 1),
padding: EdgeInsets.only(
left: 20, right: 20, top: 8, bottom: 8),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20)),
),
onPressed: () {},
padding: EdgeInsets.only(
left: 20, right: 20, top: 8, bottom: 8),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20)),
child: Text("Next",
style: TextStyle(
fontSize: 20,
Expand Down
19 changes: 11 additions & 8 deletions lib/page/shopping/ShopPageNineteen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ class _ShopNineteenState extends State<ShopPageNineteen> {
Widget textfield(String hint) {
return TextField(
decoration: InputDecoration(
labelText: hint, floatingLabelBehavior: FloatingLabelBehavior.never,
labelText: hint,
floatingLabelBehavior: FloatingLabelBehavior.never,
),
);
}
Expand Down Expand Up @@ -223,14 +224,16 @@ class _ShopNineteenState extends State<ShopPageNineteen> {
child: Container(
alignment: FractionalOffset.center,
height: 80,
child: FlatButton(
color: Color.fromRGBO(7, 7, 7, 1),
textColor: Color.fromRGBO(198, 193, 124, 1),
child: TextButton(
style: TextButton.styleFrom(
backgroundColor: Color.fromRGBO(7, 7, 7, 1),
foregroundColor: Color.fromRGBO(198, 193, 124, 1),
padding: EdgeInsets.only(
left: 20, right: 20, top: 8, bottom: 8),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20)),
),
onPressed: () {},
padding: EdgeInsets.only(
left: 20, right: 20, top: 8, bottom: 8),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20)),
child: Text("Pay",
style: TextStyle(
fontSize: 20,
Expand Down
2 changes: 1 addition & 1 deletion lib/page/signup/SignPageEleven.dart
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ class _SignPageElevenState extends State<SignPageEleven> {
flex: 2,
child: Wrap(
children: <Widget>[
FlatButton(
TextButton(
child: Text(
data,
style: TextStyle(
Expand Down
2 changes: 1 addition & 1 deletion lib/page/signup/SignPageOne.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Widget signupWidget() {
'Don\'t have an account?',
style: TextStyle(fontFamily: 'Montserrat'),
),
FlatButton(
TextButton(
onPressed: () {
print('Sign Up button pressed');
},
Expand Down
Loading