Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb8654a0

Browse files
authored
Merge pull request#32 from saadii00/master
Now running on android all the problems are resolved
2 parents9a0edeb +5c01f24 commitb8654a0

File tree

14 files changed

+151
-124
lines changed

14 files changed

+151
-124
lines changed

‎.flutter-plugins-dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +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"}
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"}

‎README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
#flutter-ui-nice
2+
23
###:heart: Star:heart: the repo to support the project or:smile:[Follow Me](https://github.com/nb312).Thanks!
3-
Facebook Page | Twitter | Medium | QQ Group
4-
--- | --- | --- | ---
5-
[Flutter Open](https://www.facebook.com/flutteropen) |[NieBin](https://twitter.com/niebin_gg) |[Flutter Open](https://medium.com/flutteropen) | 963828159
4+
5+
| Facebook Page| Twitter| Medium| QQ Group|
6+
| -----------------------------------------------------| ---------------------------------------| ----------------------------------------------| ---------|
7+
|[Flutter Open](https://www.facebook.com/flutteropen)|[NieBin](https://twitter.com/niebin_gg)|[Flutter Open](https://medium.com/flutteropen)| 963828159|
68

79
#Contributors
8-
~ | ~ | ~ | ~ | ~
9-
--- | --- | --- | --- | ---
10-
[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)
11-
|[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)
10+
11+
| ~| ~| ~| ~| ~|
12+
| ----------------------------------------------| ----------------------------------------| ----------------------------------------------| -----------------------------------------| ---------------------------------------------------------| --------------------------------------------------------|
13+
|[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)|
14+
|[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)|
1215

1316
#Contents
17+
1418
<imgsrc="doc/01-signup-no.jpg"/>
1519

1620
<imgsrc="doc/02-walk_through-no.jpg"/>
@@ -32,6 +36,7 @@ Facebook Page | Twitter | Medium | QQ Group
3236
<imgsrc="doc/10-camera-no.jpg"/>
3337

3438
#License
39+
3540
Copyright 2019@NieBin
3641

3742
Licensed under the Apache License, Version 2.0 (the "License");

‎android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
2626
applyfrom:"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion29
29+
compileSdkVersion31
3030

3131
sourceSets {
3232
main.java.srcDirs+='src/main/kotlin'

‎android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
additional functionality it is fine to subclass or reimplement
1616
FlutterApplication and put your custom class here.-->
1717
<application
18-
android:name="io.flutter.app.FlutterApplication"
18+
android:name="${applicationName}"
1919
android:label="flutter_ui_shopping"
2020
android:icon="@mipmap/ic_launcher">
2121
<activity

‎android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
buildscript {
2-
ext.kotlin_version='1.3.50'
2+
ext.kotlin_version='1.7.20'
33
repositories {
44
google()
55
jcenter()
66
}
77

88
dependencies {
9-
classpath'com.android.tools.build:gradle:4.1.0'
9+
classpath'com.android.tools.build:gradle:7.1.2'
1010
classpath"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}

‎android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip

‎ios/Flutter/flutter_export_environment.sh

100644100755
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/sh
22
# This is a generated file; do not edit or check into version control.
3-
export"FLUTTER_ROOT=D:\program_app\flutter"
4-
export"FLUTTER_APPLICATION_PATH=D:\program_data\flutter\flutter-ui-nice"
3+
export"FLUTTER_ROOT=/Users/muhammadsaadullahshahid/developer/flutter"
4+
export"FLUTTER_APPLICATION_PATH=/Users/muhammadsaadullahshahid/flutter-ui-nice"
55
export"COCOAPODS_PARALLEL_CODE_SIGN=true"
6-
export"FLUTTER_TARGET=lib\main.dart"
6+
export"FLUTTER_TARGET=lib/main.dart"
77
export"FLUTTER_BUILD_DIR=build"
88
export"FLUTTER_BUILD_NAME=1.0.0"
99
export"FLUTTER_BUILD_NUMBER=1"
1010
export"DART_OBFUSCATION=false"
11-
export"TRACK_WIDGET_CREATION=false"
11+
export"TRACK_WIDGET_CREATION=true"
1212
export"TREE_SHAKE_ICONS=false"
13-
export"PACKAGE_CONFIG=.packages"
13+
export"PACKAGE_CONFIG=.dart_tool/package_config.json"

‎lib/page/navigation/common/pages/home_page.dart

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,33 @@ import 'package:flutter/material.dart';
22
import'package:flutter_ui_nice/const/color_const.dart';
33

44
classHomePageextendsStatelessWidget {
5-
HomePage(this.onMenuPressed);
6-
finalVoidCallback onMenuPressed;
5+
HomePage(this.onMenuPressed);
6+
finalVoidCallback onMenuPressed;
77

8-
@override
8+
@override
99
Widgetbuild(BuildContext context) {
1010
returnContainer(
11-
decoration:BoxDecoration(
12-
borderRadius:BorderRadius.circular(10.0),
13-
gradient:LinearGradient(
14-
begin:Alignment.topLeft,
15-
end:Alignment.bottomRight,
16-
colors: [YELLOW,GREEN,BLUE],
17-
),
18-
boxShadow:<BoxShadow>[
19-
BoxShadow(
20-
color:Colors.black26,
21-
offset:Offset(2.0,1.0),
22-
blurRadius:10.0,
23-
)
24-
],
25-
),
26-
child:Center(
27-
child:RaisedButton(onPressed: onMenuPressed, child:Text("Open Menu"),),
28-
),
29-
);
11+
decoration:BoxDecoration(
12+
borderRadius:BorderRadius.circular(10.0),
13+
gradient:LinearGradient(
14+
begin:Alignment.topLeft,
15+
end:Alignment.bottomRight,
16+
colors: [YELLOW,GREEN,BLUE],
17+
),
18+
boxShadow:<BoxShadow>[
19+
BoxShadow(
20+
color:Colors.black26,
21+
offset:Offset(2.0,1.0),
22+
blurRadius:10.0,
23+
)
24+
],
25+
),
26+
child:Center(
27+
child:ElevatedButton(
28+
onPressed: onMenuPressed,
29+
child:Text("Open Menu"),
30+
),
31+
),
32+
);
3033
}
31-
}
34+
}

‎lib/page/navigation/navigation1/widgets/button.dart

Lines changed: 69 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -2,67 +2,78 @@ import 'package:flutter/material.dart';
22
import'package:flutter_ui_nice/const/color_const.dart';
33

44
classButton {
5+
staticWidgethome(VoidCallback onPressed)=>
6+
_buildButton(onPressed,"HOME",Icons.home);
57

6-
staticWidgethome(VoidCallback onPressed)=>_buildButton(onPressed,"HOME",Icons.home);
8+
staticWidgetchat(VoidCallback onPressed, {int notification})=>
9+
_buildButton(onPressed,"CHAT",Icons.chat, notification: notification);
710

8-
staticWidgetchat(VoidCallback onPressed, {int notification})=>_buildButton(onPressed,"CHAT",Icons.chat, notification:
9-
notification);
11+
staticWidgetfeed(VoidCallback onPressed)=>
12+
_buildButton(onPressed,"FEED",Icons.rss_feed);
1013

11-
staticWidgetfeed(VoidCallback onPressed)=>_buildButton(onPressed,"FEED",Icons.rss_feed);
14+
staticWidgetprofile(VoidCallback onPressed)=>
15+
_buildButton(onPressed,"PROFILE",Icons.person);
1216

13-
staticWidgetprofile(VoidCallback onPressed)=>_buildButton(onPressed,"PROFILE",Icons.person);
17+
staticWidgetsettings(VoidCallback onPressed)=>
18+
_buildButton(onPressed,"SETTINGS",Icons.settings);
1419

15-
staticWidgetsettings(VoidCallback onPressed)=>_buildButton(onPressed,"SETTINGS",Icons.settings);
20+
staticWidget_buildButton(
21+
VoidCallback onPressed,String title,IconData icon,
22+
{int notification}) {
23+
if (notification!=null) {
24+
returnContainer(
25+
child:Stack(
26+
children:<Widget>[
27+
_button(onPressed, title, icon),
28+
Positioned(
29+
top:0.0,
30+
right:0.0,
31+
child:Container(
32+
decoration:BoxDecoration(
33+
shape:BoxShape.circle, color:Colors.redAccent),
34+
child:Padding(
35+
padding:constEdgeInsets.all(6.0),
36+
child:Text(
37+
"$notification",
38+
style:TextStyle(color:Colors.white),
39+
),
40+
),
41+
),
42+
),
43+
],
44+
),
45+
);
46+
}else {
47+
return_button(onPressed, title, icon);
48+
}
49+
}
1650

17-
staticWidget_buildButton(VoidCallback onPressed,String title,IconData icon, {int notification}) {
18-
if (notification!=null) {
19-
returnContainer(
20-
child:Stack(
21-
children:<Widget>[
22-
_button(onPressed, title, icon),
23-
Positioned(
24-
top:0.0,
25-
right:0.0,
26-
child:Container(
27-
decoration:BoxDecoration(
28-
shape:BoxShape.circle,
29-
color:Colors.redAccent
30-
),
31-
child:Padding(
32-
padding:constEdgeInsets.all(6.0),
33-
child:Text("$notification", style:TextStyle(color:Colors.white),),
34-
),
35-
),
36-
),
37-
],
38-
),
39-
);
40-
}else {
41-
return_button(onPressed, title, icon);
42-
}
43-
}
44-
45-
staticWidget_button(VoidCallback onPressed,String title,IconData icon)=>RaisedButton(
46-
color:GREEN,
47-
shape:RoundedRectangleBorder(borderRadius:BorderRadius.circular(20.0)),
48-
onPressed: onPressed,
49-
child:Padding(
50-
padding:constEdgeInsets.symmetric(horizontal:8.0, vertical:10.0),
51-
child:Row(
52-
mainAxisAlignment:MainAxisAlignment.spaceBetween,
53-
children:<Widget>[
54-
Text(
55-
title,
56-
style:TextStyle(
57-
fontSize:18.0,
58-
color:TEXT_BLACK,
59-
),
60-
),
61-
SizedBox(width:5.0,),
62-
Icon(icon)
63-
],
64-
),
65-
),
66-
);
67-
68-
}
51+
staticWidget_button(VoidCallback onPressed,String title,IconData icon)=>
52+
ElevatedButton(
53+
style:ElevatedButton.styleFrom(
54+
backgroundColor:GREEN,
55+
shape:
56+
RoundedRectangleBorder(borderRadius:BorderRadius.circular(20.0)),
57+
),
58+
onPressed: onPressed,
59+
child:Padding(
60+
padding:constEdgeInsets.symmetric(horizontal:8.0, vertical:10.0),
61+
child:Row(
62+
mainAxisAlignment:MainAxisAlignment.spaceBetween,
63+
children:<Widget>[
64+
Text(
65+
title,
66+
style:TextStyle(
67+
fontSize:18.0,
68+
color:TEXT_BLACK,
69+
),
70+
),
71+
SizedBox(
72+
width:5.0,
73+
),
74+
Icon(icon)
75+
],
76+
),
77+
),
78+
);
79+
}

‎lib/page/shopping/ShopPageEighteen.dart

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ class _ShopEighteenState extends State<ShopPageEighteen> {
4747
margin:EdgeInsets.only(top: topmargin, left:10, right:10),
4848
child:newTheme(
4949
data:newThemeData(
50-
primaryColor:Colors.black,
51-
primaryColorDark:Colors.blue,
52-
highlightColor:Colors.green,
53-
textSelectionColor:Colors.blue[100]// text selection color
54-
),
50+
primaryColor:Colors.black,
51+
primaryColorDark:Colors.blue,
52+
highlightColor:Colors.green,
53+
textSelectionTheme:
54+
TextSelectionThemeData(selectionColor:Colors.blue[100]),
55+
// text selection color
56+
),
5557
child:newTextField(
5658
decoration:newInputDecoration(
5759
prefixStyle:TextStyle(color:RED),
@@ -61,7 +63,8 @@ class _ShopEighteenState extends State<ShopPageEighteen> {
6163
hintStyle:TextStyle(color:Colors.white),
6264
// helperText: 'Keep it short, this is just a demo.',
6365
labelText: name,
64-
labelStyle:TextStyle(color:Colors.black), floatingLabelBehavior:FloatingLabelBehavior.never,
66+
labelStyle:TextStyle(color:Colors.black),
67+
floatingLabelBehavior:FloatingLabelBehavior.never,
6568
// prefixText: 'Email ',
6669
// suffixText: 'USD',
6770
// suffixStyle: const TextStyle(color: Colors.green)
@@ -164,14 +167,16 @@ class _ShopEighteenState extends State<ShopPageEighteen> {
164167
Container(
165168
alignment:FractionalOffset.topCenter,
166169
height:80,
167-
child:FlatButton(
168-
color:Color.fromRGBO(7,7,7,1),
169-
textColor:Color.fromRGBO(198,193,124,1),
170+
child:TextButton(
171+
style:TextButton.styleFrom(
172+
backgroundColor:Color.fromRGBO(7,7,7,1),
173+
foregroundColor:Color.fromRGBO(198,193,124,1),
174+
padding:EdgeInsets.only(
175+
left:20, right:20, top:8, bottom:8),
176+
shape:RoundedRectangleBorder(
177+
borderRadius:BorderRadius.circular(20)),
178+
),
170179
onPressed: () {},
171-
padding:EdgeInsets.only(
172-
left:20, right:20, top:8, bottom:8),
173-
shape:RoundedRectangleBorder(
174-
borderRadius:BorderRadius.circular(20)),
175180
child:Text("Next",
176181
style:TextStyle(
177182
fontSize:20,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp