├── README.md
├── android
├── app
│ ├── build.gradle
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ ├── com
│ │ │ └── example
│ │ │ │ └── tiendaappflutter
│ │ │ │ └── MainActivity.java
│ │ └── io
│ │ │ └── flutter
│ │ │ └── plugins
│ │ │ └── GeneratedPluginRegistrant.java
│ │ └── res
│ │ ├── drawable
│ │ └── launch_background.xml
│ │ ├── mipmap-hdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-mdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xhdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xxhdpi
│ │ └── ic_launcher.png
│ │ ├── mipmap-xxxhdpi
│ │ └── ic_launcher.png
│ │ └── values
│ │ └── styles.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── local.properties
├── settings.gradle
└── tienda_app_flutter_android.iml
├── assets
└── images
│ ├── avatar7.png
│ ├── digital.jpg
│ ├── flutterx.png
│ ├── fondo.jpg
│ ├── loginmascrudmysluno.png
│ ├── loginx.png
│ └── userandroid.png
├── bodegaPage123.dart
├── ios
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ ├── Generated.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ └── contents.xcworkspacedata
└── Runner
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── GeneratedPluginRegistrant.h
│ ├── GeneratedPluginRegistrant.m
│ ├── Info.plist
│ └── main.m
├── lib
├── adminPage.dart
├── bodegaPage.dart
├── bodegaPage123.dart
├── main.dart
├── pages
│ ├── detail.dart
│ ├── editdata.dart
│ ├── listarUsuarios.dart
│ └── registroUsuarios.dart
└── powerPage.dart
├── pubspec.lock
├── pubspec.yaml
├── test
└── widget_test.dart
├── tienda.zip
└── tienda_app_flutter.iml
/README.md:
--------------------------------------------------------------------------------
1 | # tienda_app_flutter
2 | Solution black screen login
3 | Solution black screen login
4 | solucion pantalla negra Login
5 | codigo de la parte de login.php
6 | //solucion pantalla negrea , black screen solution
7 | Para los que tienen el problema de la pantalla negra
8 |
9 | You basically remove the line
10 | Navigator.pop (context); found in the onPressed button to enter.
11 | Yare's contribution to the channel
12 |
13 | Básicamente eliminas la linea
14 | Navigator.pop(context); que se encuentra en el onPressed del boton para ingresar.
15 | Aporte de Yare en el canal
16 |
17 |
18 | if(isset($_POST['username']))
19 | {
20 | $username=$_POST['username'];
21 | if(isset($_POST['password']))
22 | {
23 | $password=$_POST['password'];
24 | $consultar=$connect->query("SELECT * FROM users WHERE username='".$username."' and password='".$password."'");
25 | $resultado=array();
26 |
27 | while($extraerDatos=$consultar->fetch_assoc()){
28 | $resultado[]=$extraerDatos;
29 | }
30 |
31 | echo json_encode($resultado);
32 |
33 | }
34 | //y funciona correctamente aporte comentarios de Miguel en el canal de Youtube.
35 |
36 | In the file store.zip are all the php files of the connection and the CRUD, if you use xampp you must unzip this file in the path:
37 | C: \ xampp \ htdocs \ my_store
38 |
39 | ![Codigo Alpha Flutter]
40 |
41 | 
42 |
43 | Los invitamos para que se suscriban en el canal codigo Alpha flutter en Youtube
44 |
45 | https://www.youtube.com/watch?v=kwZeCZr8Axs
46 |
47 | ## Getting Started
48 |
49 | This project is a starting point for a Flutter application.
50 |
51 | A few resources to get you started if this is your first Flutter project:
52 |
53 | - [Lab: Write your first Flutter app](https://flutter.io/docs/get-started/codelab)
54 | - [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook)
55 |
56 | For help getting started with Flutter, view our
57 | [online documentation](https://flutter.io/docs), which offers tutorials,
58 | samples, guidance on mobile development, and a full API reference.
59 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
26 |
27 | android {
28 | compileSdkVersion 27
29 |
30 | lintOptions {
31 | disable 'InvalidPackage'
32 | }
33 |
34 | defaultConfig {
35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
36 | applicationId "com.example.tiendaappflutter"
37 | minSdkVersion 16
38 | targetSdkVersion 27
39 | versionCode flutterVersionCode.toInteger()
40 | versionName flutterVersionName
41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
42 | }
43 |
44 | buildTypes {
45 | release {
46 | // TODO: Add your own signing config for the release build.
47 | // Signing with the debug keys for now, so `flutter run --release` works.
48 | signingConfig signingConfigs.debug
49 | }
50 | }
51 | }
52 |
53 | flutter {
54 | source '../..'
55 | }
56 |
57 | dependencies {
58 | testImplementation 'junit:junit:4.12'
59 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
61 | }
62 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
8 |
9 |
10 |
15 |
19 |
26 |
30 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/example/tiendaappflutter/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.tiendaappflutter;
2 |
3 | import android.os.Bundle;
4 | import io.flutter.app.FlutterActivity;
5 | import io.flutter.plugins.GeneratedPluginRegistrant;
6 |
7 | public class MainActivity extends FlutterActivity {
8 | @Override
9 | protected void onCreate(Bundle savedInstanceState) {
10 | super.onCreate(savedInstanceState);
11 | GeneratedPluginRegistrant.registerWith(this);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:
--------------------------------------------------------------------------------
1 | package io.flutter.plugins;
2 |
3 | import io.flutter.plugin.common.PluginRegistry;
4 |
5 | /**
6 | * Generated file. Do not edit.
7 | */
8 | public final class GeneratedPluginRegistrant {
9 | public static void registerWith(PluginRegistry registry) {
10 | if (alreadyRegisteredWith(registry)) {
11 | return;
12 | }
13 | }
14 |
15 | private static boolean alreadyRegisteredWith(PluginRegistry registry) {
16 | final String key = GeneratedPluginRegistrant.class.getCanonicalName();
17 | if (registry.hasPlugin(key)) {
18 | return true;
19 | }
20 | registry.registrarFor(key);
21 | return false;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | repositories {
3 | google()
4 | jcenter()
5 | }
6 |
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:3.2.1'
9 | }
10 | }
11 |
12 | allprojects {
13 | repositories {
14 | google()
15 | jcenter()
16 | }
17 | }
18 |
19 | rootProject.buildDir = '../build'
20 | subprojects {
21 | project.buildDir = "${rootProject.buildDir}/${project.name}"
22 | }
23 | subprojects {
24 | project.evaluationDependsOn(':app')
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
7 |
--------------------------------------------------------------------------------
/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # Attempt to set APP_HOME
46 | # Resolve links: $0 may be a link
47 | PRG="$0"
48 | # Need this for relative symlinks.
49 | while [ -h "$PRG" ] ; do
50 | ls=`ls -ld "$PRG"`
51 | link=`expr "$ls" : '.*-> \(.*\)$'`
52 | if expr "$link" : '/.*' > /dev/null; then
53 | PRG="$link"
54 | else
55 | PRG=`dirname "$PRG"`"/$link"
56 | fi
57 | done
58 | SAVED="`pwd`"
59 | cd "`dirname \"$PRG\"`/" >/dev/null
60 | APP_HOME="`pwd -P`"
61 | cd "$SAVED" >/dev/null
62 |
63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
64 |
65 | # Determine the Java command to use to start the JVM.
66 | if [ -n "$JAVA_HOME" ] ; then
67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
68 | # IBM's JDK on AIX uses strange locations for the executables
69 | JAVACMD="$JAVA_HOME/jre/sh/java"
70 | else
71 | JAVACMD="$JAVA_HOME/bin/java"
72 | fi
73 | if [ ! -x "$JAVACMD" ] ; then
74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
75 |
76 | Please set the JAVA_HOME variable in your environment to match the
77 | location of your Java installation."
78 | fi
79 | else
80 | JAVACMD="java"
81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
82 |
83 | Please set the JAVA_HOME variable in your environment to match the
84 | location of your Java installation."
85 | fi
86 |
87 | # Increase the maximum file descriptors if we can.
88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
89 | MAX_FD_LIMIT=`ulimit -H -n`
90 | if [ $? -eq 0 ] ; then
91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
92 | MAX_FD="$MAX_FD_LIMIT"
93 | fi
94 | ulimit -n $MAX_FD
95 | if [ $? -ne 0 ] ; then
96 | warn "Could not set maximum file descriptor limit: $MAX_FD"
97 | fi
98 | else
99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
100 | fi
101 | fi
102 |
103 | # For Darwin, add options to specify how the application appears in the dock
104 | if $darwin; then
105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
106 | fi
107 |
108 | # For Cygwin, switch paths to Windows format before running java
109 | if $cygwin ; then
110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
112 | JAVACMD=`cygpath --unix "$JAVACMD"`
113 |
114 | # We build the pattern for arguments to be converted via cygpath
115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
116 | SEP=""
117 | for dir in $ROOTDIRSRAW ; do
118 | ROOTDIRS="$ROOTDIRS$SEP$dir"
119 | SEP="|"
120 | done
121 | OURCYGPATTERN="(^($ROOTDIRS))"
122 | # Add a user-defined pattern to the cygpath arguments
123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
125 | fi
126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
127 | i=0
128 | for arg in "$@" ; do
129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
131 |
132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
134 | else
135 | eval `echo args$i`="\"$arg\""
136 | fi
137 | i=$((i+1))
138 | done
139 | case $i in
140 | (0) set -- ;;
141 | (1) set -- "$args0" ;;
142 | (2) set -- "$args0" "$args1" ;;
143 | (3) set -- "$args0" "$args1" "$args2" ;;
144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
150 | esac
151 | fi
152 |
153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
154 | function splitJvmOpts() {
155 | JVM_OPTS=("$@")
156 | }
157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
159 |
160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
161 |
--------------------------------------------------------------------------------
/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/android/local.properties:
--------------------------------------------------------------------------------
1 | sdk.dir=C:\\Users\\Asus\\AppData\\Local\\Android\\Sdk
2 | flutter.sdk=C:\\src\\flutter
3 | flutter.versionName=1.0.0
4 | flutter.versionCode=1
5 | flutter.buildMode=debug
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/android/tienda_app_flutter_android.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/assets/images/avatar7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/assets/images/avatar7.png
--------------------------------------------------------------------------------
/assets/images/digital.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/assets/images/digital.jpg
--------------------------------------------------------------------------------
/assets/images/flutterx.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/assets/images/flutterx.png
--------------------------------------------------------------------------------
/assets/images/fondo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/assets/images/fondo.jpg
--------------------------------------------------------------------------------
/assets/images/loginmascrudmysluno.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/assets/images/loginmascrudmysluno.png
--------------------------------------------------------------------------------
/assets/images/loginx.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/assets/images/loginx.png
--------------------------------------------------------------------------------
/assets/images/userandroid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/assets/images/userandroid.png
--------------------------------------------------------------------------------
/bodegaPage123.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | //creamos Page de adminitracion
4 | class BodegaPage extends StatelessWidget {
5 | @override
6 | Widget build(BuildContext context) {
7 | return new Scaffold(
8 | backgroundColor: Color(0xFFD8D8D8),
9 | appBar: new AppBar(
10 | title: new Text("Bodega - Ventas"), backgroundColor: Colors.blueAccent),
11 | body: Column(children: [
12 | Row(
13 | //ROW 1
14 | children: [
15 | Container(
16 | padding: EdgeInsets.all(8.0),
17 | child: new RawMaterialButton(
18 | onPressed: () {
19 | Navigator.pushReplacementNamed(context, '/pages/listarUsuarios');
20 | },
21 | child: new Icon(
22 | Icons.people,
23 | color: Colors.blueAccent,
24 | size: 63.0,
25 | ),
26 | shape: new CircleBorder(),
27 | elevation: 2.0,
28 | fillColor: Colors.white,
29 | padding: const EdgeInsets.all(7.0),
30 | ),
31 | ),
32 | Container(
33 | padding: EdgeInsets.all(7.0),
34 | child: new RawMaterialButton(
35 | onPressed: () {
36 | Navigator.pushReplacementNamed(context, '/LoginPage');
37 | },
38 | child: new Icon(
39 | Icons.list,
40 | color: Colors.grey[300],
41 | size: 63.0,
42 | ),
43 | shape: new CircleBorder(),
44 | elevation: 2.0,
45 | fillColor: Colors.white,
46 | padding: const EdgeInsets.all(7.0),
47 | ),
48 | ),
49 | Container(
50 | padding: EdgeInsets.all(7.0),
51 | child: new RawMaterialButton(
52 | onPressed: () {
53 | Navigator.pushReplacementNamed(context, '/LoginPage');
54 | },
55 | child: new Icon(
56 | Icons.cloud_done,
57 | color: Colors.greenAccent,
58 | size: 63.0,
59 | ),
60 | shape: new CircleBorder(),
61 | elevation: 2.0,
62 | fillColor: Colors.white,
63 | padding: const EdgeInsets.all(7.0),
64 | ),
65 | ),
66 | Container(
67 | padding: EdgeInsets.all(7.0),
68 | child: new RawMaterialButton(
69 | onPressed: () {
70 | Navigator.pushReplacementNamed(context, '/LoginPage');
71 | },
72 | child: new Icon(
73 | Icons.shopping_cart,
74 | color: Colors.orangeAccent[100],
75 | size: 63.0,
76 | ),
77 | shape: new CircleBorder(),
78 | elevation: 2.0,
79 | fillColor: Colors.white,
80 | padding: const EdgeInsets.all(7.0),
81 | ),
82 | ),
83 | ],
84 | ),
85 | Row(//ROW 2
86 | children: [
87 | Container(
88 | padding: EdgeInsets.all(7.0),
89 | child: new RawMaterialButton(
90 | onPressed: () {
91 | Navigator.pushReplacementNamed(context, '/pages/listarUsuarios');
92 | },
93 | child: new Icon(
94 | Icons.settings,
95 | color: Colors.redAccent,
96 | size: 63.0,
97 | ),
98 | shape: new CircleBorder(),
99 | elevation: 2.0,
100 | fillColor: Colors.white,
101 | padding: const EdgeInsets.all(7.0),
102 | ),
103 | ),
104 | ]),
105 | //Row 4
106 | Row(
107 | children: [
108 | Container(
109 | padding: EdgeInsets.all(7.0),
110 | child: new RawMaterialButton(
111 | onPressed: () {
112 | Navigator.pushReplacementNamed(context, '/LoginPage');
113 | },
114 | child: new Icon(
115 | Icons.exit_to_app,
116 | color: Colors.red[900],
117 | size: 70.0,
118 | ),
119 | shape: new CircleBorder(),
120 | elevation: 2.0,
121 | fillColor: Colors.transparent,
122 | padding: const EdgeInsets.all(7.0),
123 | ),
124 | ),
125 | ],
126 | )
127 | ]));
128 | }
129 | }
130 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Generated.xcconfig:
--------------------------------------------------------------------------------
1 | // This is a generated file; do not edit or check into version control.
2 | FLUTTER_ROOT=C:\src\flutter
3 | FLUTTER_APPLICATION_PATH=C:\cursocodigoalpha\tienda_app_flutter
4 | FLUTTER_TARGET=lib/main.dart
5 | FLUTTER_BUILD_DIR=build
6 | SYMROOT=${SOURCE_ROOT}/../build\ios
7 | FLUTTER_FRAMEWORK_DIR=C:\src\flutter\bin\cache\artifacts\engine\ios
8 | FLUTTER_BUILD_NAME=1.0.0
9 | FLUTTER_BUILD_NUMBER=1
10 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; };
12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
13 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
14 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
18 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
19 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
20 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
21 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
22 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
23 | /* End PBXBuildFile section */
24 |
25 | /* Begin PBXCopyFilesBuildPhase section */
26 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
27 | isa = PBXCopyFilesBuildPhase;
28 | buildActionMask = 2147483647;
29 | dstPath = "";
30 | dstSubfolderSpec = 10;
31 | files = (
32 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
33 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
34 | );
35 | name = "Embed Frameworks";
36 | runOnlyForDeploymentPostprocessing = 0;
37 | };
38 | /* End PBXCopyFilesBuildPhase section */
39 |
40 | /* Begin PBXFileReference section */
41 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
42 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
43 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; };
44 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
45 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; };
46 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
47 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
48 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
49 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
50 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
51 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; };
52 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
53 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
54 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
55 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
56 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
57 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
58 | /* End PBXFileReference section */
59 |
60 | /* Begin PBXFrameworksBuildPhase section */
61 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
62 | isa = PBXFrameworksBuildPhase;
63 | buildActionMask = 2147483647;
64 | files = (
65 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
66 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
67 | );
68 | runOnlyForDeploymentPostprocessing = 0;
69 | };
70 | /* End PBXFrameworksBuildPhase section */
71 |
72 | /* Begin PBXGroup section */
73 | 9740EEB11CF90186004384FC /* Flutter */ = {
74 | isa = PBXGroup;
75 | children = (
76 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */,
77 | 3B80C3931E831B6300D905FE /* App.framework */,
78 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
79 | 9740EEBA1CF902C7004384FC /* Flutter.framework */,
80 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
81 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
82 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
83 | );
84 | name = Flutter;
85 | sourceTree = "";
86 | };
87 | 97C146E51CF9000F007C117D = {
88 | isa = PBXGroup;
89 | children = (
90 | 9740EEB11CF90186004384FC /* Flutter */,
91 | 97C146F01CF9000F007C117D /* Runner */,
92 | 97C146EF1CF9000F007C117D /* Products */,
93 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */,
94 | );
95 | sourceTree = "";
96 | };
97 | 97C146EF1CF9000F007C117D /* Products */ = {
98 | isa = PBXGroup;
99 | children = (
100 | 97C146EE1CF9000F007C117D /* Runner.app */,
101 | );
102 | name = Products;
103 | sourceTree = "";
104 | };
105 | 97C146F01CF9000F007C117D /* Runner */ = {
106 | isa = PBXGroup;
107 | children = (
108 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,
109 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,
110 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
111 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
112 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
113 | 97C147021CF9000F007C117D /* Info.plist */,
114 | 97C146F11CF9000F007C117D /* Supporting Files */,
115 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
116 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
117 | );
118 | path = Runner;
119 | sourceTree = "";
120 | };
121 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
122 | isa = PBXGroup;
123 | children = (
124 | 97C146F21CF9000F007C117D /* main.m */,
125 | );
126 | name = "Supporting Files";
127 | sourceTree = "";
128 | };
129 | /* End PBXGroup section */
130 |
131 | /* Begin PBXNativeTarget section */
132 | 97C146ED1CF9000F007C117D /* Runner */ = {
133 | isa = PBXNativeTarget;
134 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
135 | buildPhases = (
136 | 9740EEB61CF901F6004384FC /* Run Script */,
137 | 97C146EA1CF9000F007C117D /* Sources */,
138 | 97C146EB1CF9000F007C117D /* Frameworks */,
139 | 97C146EC1CF9000F007C117D /* Resources */,
140 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
142 | );
143 | buildRules = (
144 | );
145 | dependencies = (
146 | );
147 | name = Runner;
148 | productName = Runner;
149 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
150 | productType = "com.apple.product-type.application";
151 | };
152 | /* End PBXNativeTarget section */
153 |
154 | /* Begin PBXProject section */
155 | 97C146E61CF9000F007C117D /* Project object */ = {
156 | isa = PBXProject;
157 | attributes = {
158 | LastUpgradeCheck = 0910;
159 | ORGANIZATIONNAME = "The Chromium Authors";
160 | TargetAttributes = {
161 | 97C146ED1CF9000F007C117D = {
162 | CreatedOnToolsVersion = 7.3.1;
163 | };
164 | };
165 | };
166 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
167 | compatibilityVersion = "Xcode 3.2";
168 | developmentRegion = English;
169 | hasScannedForEncodings = 0;
170 | knownRegions = (
171 | en,
172 | Base,
173 | );
174 | mainGroup = 97C146E51CF9000F007C117D;
175 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
176 | projectDirPath = "";
177 | projectRoot = "";
178 | targets = (
179 | 97C146ED1CF9000F007C117D /* Runner */,
180 | );
181 | };
182 | /* End PBXProject section */
183 |
184 | /* Begin PBXResourcesBuildPhase section */
185 | 97C146EC1CF9000F007C117D /* Resources */ = {
186 | isa = PBXResourcesBuildPhase;
187 | buildActionMask = 2147483647;
188 | files = (
189 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
190 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
191 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
192 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
193 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */,
194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | };
198 | /* End PBXResourcesBuildPhase section */
199 |
200 | /* Begin PBXShellScriptBuildPhase section */
201 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
202 | isa = PBXShellScriptBuildPhase;
203 | buildActionMask = 2147483647;
204 | files = (
205 | );
206 | inputPaths = (
207 | );
208 | name = "Thin Binary";
209 | outputPaths = (
210 | );
211 | runOnlyForDeploymentPostprocessing = 0;
212 | shellPath = /bin/sh;
213 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
214 | };
215 | 9740EEB61CF901F6004384FC /* Run Script */ = {
216 | isa = PBXShellScriptBuildPhase;
217 | buildActionMask = 2147483647;
218 | files = (
219 | );
220 | inputPaths = (
221 | );
222 | name = "Run Script";
223 | outputPaths = (
224 | );
225 | runOnlyForDeploymentPostprocessing = 0;
226 | shellPath = /bin/sh;
227 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
228 | };
229 | /* End PBXShellScriptBuildPhase section */
230 |
231 | /* Begin PBXSourcesBuildPhase section */
232 | 97C146EA1CF9000F007C117D /* Sources */ = {
233 | isa = PBXSourcesBuildPhase;
234 | buildActionMask = 2147483647;
235 | files = (
236 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */,
237 | 97C146F31CF9000F007C117D /* main.m in Sources */,
238 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
239 | );
240 | runOnlyForDeploymentPostprocessing = 0;
241 | };
242 | /* End PBXSourcesBuildPhase section */
243 |
244 | /* Begin PBXVariantGroup section */
245 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
246 | isa = PBXVariantGroup;
247 | children = (
248 | 97C146FB1CF9000F007C117D /* Base */,
249 | );
250 | name = Main.storyboard;
251 | sourceTree = "";
252 | };
253 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
254 | isa = PBXVariantGroup;
255 | children = (
256 | 97C147001CF9000F007C117D /* Base */,
257 | );
258 | name = LaunchScreen.storyboard;
259 | sourceTree = "";
260 | };
261 | /* End PBXVariantGroup section */
262 |
263 | /* Begin XCBuildConfiguration section */
264 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
265 | isa = XCBuildConfiguration;
266 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
267 | buildSettings = {
268 | ALWAYS_SEARCH_USER_PATHS = NO;
269 | CLANG_ANALYZER_NONNULL = YES;
270 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
271 | CLANG_CXX_LIBRARY = "libc++";
272 | CLANG_ENABLE_MODULES = YES;
273 | CLANG_ENABLE_OBJC_ARC = YES;
274 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
275 | CLANG_WARN_BOOL_CONVERSION = YES;
276 | CLANG_WARN_COMMA = YES;
277 | CLANG_WARN_CONSTANT_CONVERSION = YES;
278 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
279 | CLANG_WARN_EMPTY_BODY = YES;
280 | CLANG_WARN_ENUM_CONVERSION = YES;
281 | CLANG_WARN_INFINITE_RECURSION = YES;
282 | CLANG_WARN_INT_CONVERSION = YES;
283 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
284 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
285 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
286 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
287 | CLANG_WARN_STRICT_PROTOTYPES = YES;
288 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
289 | CLANG_WARN_UNREACHABLE_CODE = YES;
290 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
291 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
292 | COPY_PHASE_STRIP = NO;
293 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
294 | ENABLE_NS_ASSERTIONS = NO;
295 | ENABLE_STRICT_OBJC_MSGSEND = YES;
296 | GCC_C_LANGUAGE_STANDARD = gnu99;
297 | GCC_NO_COMMON_BLOCKS = YES;
298 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
299 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
300 | GCC_WARN_UNDECLARED_SELECTOR = YES;
301 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
302 | GCC_WARN_UNUSED_FUNCTION = YES;
303 | GCC_WARN_UNUSED_VARIABLE = YES;
304 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
305 | MTL_ENABLE_DEBUG_INFO = NO;
306 | SDKROOT = iphoneos;
307 | TARGETED_DEVICE_FAMILY = "1,2";
308 | VALIDATE_PRODUCT = YES;
309 | };
310 | name = Profile;
311 | };
312 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
313 | isa = XCBuildConfiguration;
314 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
315 | buildSettings = {
316 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
317 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
318 | DEVELOPMENT_TEAM = S8QB4VV633;
319 | ENABLE_BITCODE = NO;
320 | FRAMEWORK_SEARCH_PATHS = (
321 | "$(inherited)",
322 | "$(PROJECT_DIR)/Flutter",
323 | );
324 | INFOPLIST_FILE = Runner/Info.plist;
325 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
326 | LIBRARY_SEARCH_PATHS = (
327 | "$(inherited)",
328 | "$(PROJECT_DIR)/Flutter",
329 | );
330 | PRODUCT_BUNDLE_IDENTIFIER = com.example.tiendaAppFlutter;
331 | PRODUCT_NAME = "$(TARGET_NAME)";
332 | VERSIONING_SYSTEM = "apple-generic";
333 | };
334 | name = Profile;
335 | };
336 | 97C147031CF9000F007C117D /* Debug */ = {
337 | isa = XCBuildConfiguration;
338 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
339 | buildSettings = {
340 | ALWAYS_SEARCH_USER_PATHS = NO;
341 | CLANG_ANALYZER_NONNULL = YES;
342 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
343 | CLANG_CXX_LIBRARY = "libc++";
344 | CLANG_ENABLE_MODULES = YES;
345 | CLANG_ENABLE_OBJC_ARC = YES;
346 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
347 | CLANG_WARN_BOOL_CONVERSION = YES;
348 | CLANG_WARN_COMMA = YES;
349 | CLANG_WARN_CONSTANT_CONVERSION = YES;
350 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
351 | CLANG_WARN_EMPTY_BODY = YES;
352 | CLANG_WARN_ENUM_CONVERSION = YES;
353 | CLANG_WARN_INFINITE_RECURSION = YES;
354 | CLANG_WARN_INT_CONVERSION = YES;
355 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
356 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
357 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
358 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
359 | CLANG_WARN_STRICT_PROTOTYPES = YES;
360 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
361 | CLANG_WARN_UNREACHABLE_CODE = YES;
362 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
363 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
364 | COPY_PHASE_STRIP = NO;
365 | DEBUG_INFORMATION_FORMAT = dwarf;
366 | ENABLE_STRICT_OBJC_MSGSEND = YES;
367 | ENABLE_TESTABILITY = YES;
368 | GCC_C_LANGUAGE_STANDARD = gnu99;
369 | GCC_DYNAMIC_NO_PIC = NO;
370 | GCC_NO_COMMON_BLOCKS = YES;
371 | GCC_OPTIMIZATION_LEVEL = 0;
372 | GCC_PREPROCESSOR_DEFINITIONS = (
373 | "DEBUG=1",
374 | "$(inherited)",
375 | );
376 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
377 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
378 | GCC_WARN_UNDECLARED_SELECTOR = YES;
379 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
380 | GCC_WARN_UNUSED_FUNCTION = YES;
381 | GCC_WARN_UNUSED_VARIABLE = YES;
382 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
383 | MTL_ENABLE_DEBUG_INFO = YES;
384 | ONLY_ACTIVE_ARCH = YES;
385 | SDKROOT = iphoneos;
386 | TARGETED_DEVICE_FAMILY = "1,2";
387 | };
388 | name = Debug;
389 | };
390 | 97C147041CF9000F007C117D /* Release */ = {
391 | isa = XCBuildConfiguration;
392 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
393 | buildSettings = {
394 | ALWAYS_SEARCH_USER_PATHS = NO;
395 | CLANG_ANALYZER_NONNULL = YES;
396 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
397 | CLANG_CXX_LIBRARY = "libc++";
398 | CLANG_ENABLE_MODULES = YES;
399 | CLANG_ENABLE_OBJC_ARC = YES;
400 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
401 | CLANG_WARN_BOOL_CONVERSION = YES;
402 | CLANG_WARN_COMMA = YES;
403 | CLANG_WARN_CONSTANT_CONVERSION = YES;
404 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
405 | CLANG_WARN_EMPTY_BODY = YES;
406 | CLANG_WARN_ENUM_CONVERSION = YES;
407 | CLANG_WARN_INFINITE_RECURSION = YES;
408 | CLANG_WARN_INT_CONVERSION = YES;
409 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
410 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
411 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
412 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
413 | CLANG_WARN_STRICT_PROTOTYPES = YES;
414 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
415 | CLANG_WARN_UNREACHABLE_CODE = YES;
416 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
417 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
418 | COPY_PHASE_STRIP = NO;
419 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
420 | ENABLE_NS_ASSERTIONS = NO;
421 | ENABLE_STRICT_OBJC_MSGSEND = YES;
422 | GCC_C_LANGUAGE_STANDARD = gnu99;
423 | GCC_NO_COMMON_BLOCKS = YES;
424 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
425 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
426 | GCC_WARN_UNDECLARED_SELECTOR = YES;
427 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
428 | GCC_WARN_UNUSED_FUNCTION = YES;
429 | GCC_WARN_UNUSED_VARIABLE = YES;
430 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
431 | MTL_ENABLE_DEBUG_INFO = NO;
432 | SDKROOT = iphoneos;
433 | TARGETED_DEVICE_FAMILY = "1,2";
434 | VALIDATE_PRODUCT = YES;
435 | };
436 | name = Release;
437 | };
438 | 97C147061CF9000F007C117D /* Debug */ = {
439 | isa = XCBuildConfiguration;
440 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
441 | buildSettings = {
442 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
443 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
444 | ENABLE_BITCODE = NO;
445 | FRAMEWORK_SEARCH_PATHS = (
446 | "$(inherited)",
447 | "$(PROJECT_DIR)/Flutter",
448 | );
449 | INFOPLIST_FILE = Runner/Info.plist;
450 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
451 | LIBRARY_SEARCH_PATHS = (
452 | "$(inherited)",
453 | "$(PROJECT_DIR)/Flutter",
454 | );
455 | PRODUCT_BUNDLE_IDENTIFIER = com.example.tiendaAppFlutter;
456 | PRODUCT_NAME = "$(TARGET_NAME)";
457 | VERSIONING_SYSTEM = "apple-generic";
458 | };
459 | name = Debug;
460 | };
461 | 97C147071CF9000F007C117D /* Release */ = {
462 | isa = XCBuildConfiguration;
463 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
464 | buildSettings = {
465 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
466 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
467 | ENABLE_BITCODE = NO;
468 | FRAMEWORK_SEARCH_PATHS = (
469 | "$(inherited)",
470 | "$(PROJECT_DIR)/Flutter",
471 | );
472 | INFOPLIST_FILE = Runner/Info.plist;
473 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
474 | LIBRARY_SEARCH_PATHS = (
475 | "$(inherited)",
476 | "$(PROJECT_DIR)/Flutter",
477 | );
478 | PRODUCT_BUNDLE_IDENTIFIER = com.example.tiendaAppFlutter;
479 | PRODUCT_NAME = "$(TARGET_NAME)";
480 | VERSIONING_SYSTEM = "apple-generic";
481 | };
482 | name = Release;
483 | };
484 | /* End XCBuildConfiguration section */
485 |
486 | /* Begin XCConfigurationList section */
487 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
488 | isa = XCConfigurationList;
489 | buildConfigurations = (
490 | 97C147031CF9000F007C117D /* Debug */,
491 | 97C147041CF9000F007C117D /* Release */,
492 | 249021D3217E4FDB00AE95B9 /* Profile */,
493 | );
494 | defaultConfigurationIsVisible = 0;
495 | defaultConfigurationName = Release;
496 | };
497 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
498 | isa = XCConfigurationList;
499 | buildConfigurations = (
500 | 97C147061CF9000F007C117D /* Debug */,
501 | 97C147071CF9000F007C117D /* Release */,
502 | 249021D4217E4FDB00AE95B9 /* Profile */,
503 | );
504 | defaultConfigurationIsVisible = 0;
505 | defaultConfigurationName = Release;
506 | };
507 | /* End XCConfigurationList section */
508 | };
509 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
510 | }
511 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
31 |
32 |
33 |
34 |
40 |
41 |
42 |
43 |
44 |
45 |
56 |
58 |
64 |
65 |
66 |
67 |
68 |
69 |
75 |
77 |
83 |
84 |
85 |
86 |
88 |
89 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @interface AppDelegate : FlutterAppDelegate
5 |
6 | @end
7 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.m:
--------------------------------------------------------------------------------
1 | #include "AppDelegate.h"
2 | #include "GeneratedPluginRegistrant.h"
3 |
4 | @implementation AppDelegate
5 |
6 | - (BOOL)application:(UIApplication *)application
7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
8 | [GeneratedPluginRegistrant registerWithRegistry:self];
9 | // Override point for customization after application launch.
10 | return [super application:application didFinishLaunchingWithOptions:launchOptions];
11 | }
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codigoalphacol/tiendaFlutterMysql/6ac53bbaab0704fe02c65c1ccadfa479f9701121/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/GeneratedPluginRegistrant.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | #ifndef GeneratedPluginRegistrant_h
6 | #define GeneratedPluginRegistrant_h
7 |
8 | #import
9 |
10 | @interface GeneratedPluginRegistrant : NSObject
11 | + (void)registerWithRegistry:(NSObject*)registry;
12 | @end
13 |
14 | #endif /* GeneratedPluginRegistrant_h */
15 |
--------------------------------------------------------------------------------
/ios/Runner/GeneratedPluginRegistrant.m:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | #import "GeneratedPluginRegistrant.h"
6 |
7 | @implementation GeneratedPluginRegistrant
8 |
9 | + (void)registerWithRegistry:(NSObject*)registry {
10 | }
11 |
12 | @end
13 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | tienda_app_flutter
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/main.m:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 | #import "AppDelegate.h"
4 |
5 | int main(int argc, char* argv[]) {
6 | @autoreleasepool {
7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/lib/adminPage.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | //creamos Page de adminitracion
4 | class Administracion extends StatelessWidget {
5 | @override
6 | Widget build(BuildContext context) {
7 | return new Scaffold(
8 | backgroundColor: Color(0xFFD8D8D8),
9 | appBar: new AppBar(
10 | title: new Text("Administracion"), backgroundColor: Colors.blueAccent),
11 | body: Column(children: [
12 | Row(
13 | //ROW 1
14 | children: [
15 | Container(
16 | padding: EdgeInsets.all(8.0),
17 | child: new RawMaterialButton(
18 | onPressed: () {
19 | Navigator.pushReplacementNamed(context, '/pages/listarUsuarios');
20 | },
21 | child: new Icon(
22 | Icons.people,
23 | color: Colors.blueAccent,
24 | size: 63.0,
25 | ),
26 | shape: new CircleBorder(),
27 | elevation: 2.0,
28 | fillColor: Colors.white,
29 | padding: const EdgeInsets.all(7.0),
30 | ),
31 | ),
32 | Container(
33 | padding: EdgeInsets.all(7.0),
34 | child: new RawMaterialButton(
35 | onPressed: () {
36 | Navigator.pushReplacementNamed(context, '/LoginPage');
37 | },
38 | child: new Icon(
39 | Icons.list,
40 | color: Colors.grey[300],
41 | size: 63.0,
42 | ),
43 | shape: new CircleBorder(),
44 | elevation: 2.0,
45 | fillColor: Colors.white,
46 | padding: const EdgeInsets.all(7.0),
47 | ),
48 | ),
49 | Container(
50 | padding: EdgeInsets.all(7.0),
51 | child: new RawMaterialButton(
52 | onPressed: () {
53 | Navigator.pushReplacementNamed(context, '/LoginPage');
54 | },
55 | child: new Icon(
56 | Icons.cloud_done,
57 | color: Colors.greenAccent,
58 | size: 63.0,
59 | ),
60 | shape: new CircleBorder(),
61 | elevation: 2.0,
62 | fillColor: Colors.white,
63 | padding: const EdgeInsets.all(7.0),
64 | ),
65 | ),
66 | Container(
67 | padding: EdgeInsets.all(7.0),
68 | child: new RawMaterialButton(
69 | onPressed: () {
70 | Navigator.pushReplacementNamed(context, '/LoginPage');
71 | },
72 | child: new Icon(
73 | Icons.shopping_cart,
74 | color: Colors.orangeAccent[100],
75 | size: 63.0,
76 | ),
77 | shape: new CircleBorder(),
78 | elevation: 2.0,
79 | fillColor: Colors.white,
80 | padding: const EdgeInsets.all(7.0),
81 | ),
82 | ),
83 | ],
84 | ),
85 | Row(//ROW 2
86 | children: [
87 | Container(
88 | padding: EdgeInsets.all(7.0),
89 | child: new RawMaterialButton(
90 | onPressed: () {
91 | Navigator.pushReplacementNamed(context, '/pages/listarUsuarios');
92 | },
93 | child: new Icon(
94 | Icons.settings,
95 | color: Colors.redAccent,
96 | size: 63.0,
97 | ),
98 | shape: new CircleBorder(),
99 | elevation: 2.0,
100 | fillColor: Colors.white,
101 | padding: const EdgeInsets.all(7.0),
102 | ),
103 | ),
104 | Container(
105 | padding: EdgeInsets.all(7.0),
106 | child: new RawMaterialButton(
107 | onPressed: () {
108 | Navigator.pushReplacementNamed(context, '/LoginPage');
109 | },
110 | child: new Icon(
111 | Icons.backup,
112 | color: Colors.lightBlue[300],
113 | size: 63.0,
114 | ),
115 | shape: new CircleBorder(),
116 | elevation: 2.0,
117 | fillColor: Colors.white,
118 | padding: const EdgeInsets.all(7.0),
119 | ),
120 | ),
121 | Container(
122 | padding: EdgeInsets.all(7.0),
123 | child: new RawMaterialButton(
124 | onPressed: () {
125 | Navigator.pushReplacementNamed(context, '/LoginPage');
126 | },
127 | child: new Icon(
128 | Icons.alarm_on,
129 | color: Colors.yellowAccent,
130 | size: 63.0,
131 | ),
132 | shape: new CircleBorder(),
133 | elevation: 2.0,
134 | fillColor: Colors.white,
135 | padding: const EdgeInsets.all(7.0),
136 | ),
137 | ),
138 | Container(
139 | padding: EdgeInsets.all(7.0),
140 | child: new RawMaterialButton(
141 | onPressed: () {
142 | Navigator.pushReplacementNamed(context, '/LoginPage');
143 | },
144 | child: new Icon(
145 | Icons.local_printshop,
146 | color: Colors.white,
147 | size: 63.0,
148 | ),
149 | shape: new CircleBorder(),
150 | elevation: 2.0,
151 | fillColor: Colors.white,
152 | padding: const EdgeInsets.all(7.0),
153 | ),
154 | ),
155 | ]),
156 | Row(// ROW 3
157 | children: [
158 | Container(
159 | padding: EdgeInsets.all(7.0),
160 | child: new RawMaterialButton(
161 | onPressed: () {
162 | Navigator.pushReplacementNamed(context, '/pages/listarUsuarios');
163 | },
164 | child: new Icon(
165 | Icons.picture_as_pdf,
166 | color: Colors.red[900],
167 | size: 70.0,
168 | ),
169 | shape: new CircleBorder(),
170 | elevation: 2.0,
171 | fillColor: Colors.white,
172 | padding: const EdgeInsets.all(7.0),
173 | ),
174 | ),
175 | Container(
176 | padding: EdgeInsets.all(7.0),
177 | child: new RawMaterialButton(
178 | onPressed: () {
179 | Navigator.pushReplacementNamed(context, '/LoginPage');
180 | },
181 | child: new Icon(
182 | Icons.list,
183 | color: Colors.grey[300],
184 | size: 70.0,
185 | ),
186 | shape: new CircleBorder(),
187 | elevation: 2.0,
188 | fillColor: Colors.white,
189 | padding: const EdgeInsets.all(7.0),
190 | ),
191 | ),
192 | Container(
193 | padding: EdgeInsets.all(7.0),
194 | child: new RawMaterialButton(
195 | onPressed: () {
196 | Navigator.pushReplacementNamed(context, '/LoginPage');
197 | },
198 | child: new Icon(
199 | Icons.cloud_done,
200 | color: Colors.greenAccent,
201 | size: 70.0,
202 | ),
203 | shape: new CircleBorder(),
204 | elevation: 2.0,
205 | fillColor: Colors.white,
206 | padding: const EdgeInsets.all(7.0),
207 | ),
208 | ),
209 | Container(
210 | padding: EdgeInsets.all(7.0),
211 | child: new RawMaterialButton(
212 | onPressed: () {
213 | Navigator.pushReplacementNamed(context, '/LoginPage');
214 | },
215 | child: new Icon(
216 | Icons.shopping_cart,
217 | color: Colors.yellowAccent[100],
218 | size: 70.0,
219 | ),
220 | shape: new CircleBorder(),
221 | elevation: 2.0,
222 | fillColor: Colors.white,
223 | padding: const EdgeInsets.all(7.0),
224 | ),
225 | ),
226 | ]),
227 | //Row 4
228 | Row(
229 | children: [
230 | Container(
231 | padding: EdgeInsets.all(7.0),
232 | child: new RawMaterialButton(
233 | onPressed: () {
234 | Navigator.pushReplacementNamed(context, '/adminPage');
235 | },
236 | child: new Icon(
237 | Icons.vpn_key,
238 | color: Colors.red[900],
239 | size: 70.0,
240 | ),
241 | shape: new CircleBorder(),
242 | elevation: 2.0,
243 | fillColor: Colors.transparent,
244 | padding: const EdgeInsets.all(7.0),
245 | ),
246 | ),
247 | ],
248 | )
249 | ]));
250 | }
251 | }
252 |
--------------------------------------------------------------------------------
/lib/bodegaPage.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class BodegaPage extends StatelessWidget {
4 |
5 | BodegaPage({this.username});
6 | final String username;
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return new Scaffold(
11 | backgroundColor: Color(0xFFD8D8D8),
12 | appBar: new AppBar(
13 | title: new Text("Bodega - Ventas"),
14 | backgroundColor: Colors.blueAccent),
15 | body: Column(children: [
16 | Row(
17 | //ROW 1
18 | children: [
19 | Container(
20 | padding: EdgeInsets.all(15.0),
21 | child: Container(
22 | child: FlatButton(
23 | onPressed: () {
24 | Navigator.pushReplacementNamed(context, '/LoginPage');
25 | },
26 | shape: new RoundedRectangleBorder(
27 | borderRadius: new BorderRadius.circular(50.0)),
28 | color: Colors.orange,
29 | padding: EdgeInsets.all(10.0),
30 | child: Column(
31 | // Replace with a Row for horizontal icon + text
32 | children: [
33 | Icon(
34 | Icons.airplanemode_active,
35 | size: 57,
36 | ),
37 | Text("Clientes"),
38 | ],
39 | ),
40 | ),
41 | ),
42 | ),
43 |
44 | Container(
45 | child: FlatButton(
46 | onPressed: () {
47 | Navigator.pushReplacementNamed(context, '/LoginPage');
48 | },
49 | shape: new RoundedRectangleBorder(
50 | borderRadius: new BorderRadius.circular(50.0)),
51 | color: Colors.orange,
52 | padding: EdgeInsets.all(10.0),
53 | child: Column(
54 | // Replace with a Row for horizontal icon + text
55 | children: [
56 | Icon(
57 | Icons.airplanemode_active,
58 | size: 57,
59 | ),
60 | Text("Clientes"),
61 | ],
62 | ),
63 | ),
64 | ),
65 | VerticalDivider(),
66 | Container(
67 | child: FlatButton(
68 | onPressed: () {
69 | Navigator.pushReplacementNamed(context, '/LoginPage');
70 | },
71 | shape: new RoundedRectangleBorder(
72 | borderRadius: new BorderRadius.circular(50.0)),
73 | color: Colors.orange,
74 | padding: EdgeInsets.all(10.0),
75 | child: Column(
76 | // Replace with a Row for horizontal icon + text
77 | children: [
78 | Icon(
79 | Icons.airplanemode_active,
80 | size: 57,
81 | ),
82 | Text("Clientes"),
83 | ],
84 | ),
85 | ),
86 | ),
87 | ],
88 | ),
89 | //Row 4
90 | Row(
91 | children: [
92 | Container(
93 | padding: EdgeInsets.all(7.0),
94 | child: new RawMaterialButton(
95 | onPressed: () {
96 | Navigator.pushReplacementNamed(context, '/LoginPage');
97 | },
98 | child: new Icon(
99 | Icons.exit_to_app,
100 | color: Colors.red[900],
101 | size: 70.0,
102 | ),
103 | shape: new CircleBorder(),
104 | elevation: 2.0,
105 | fillColor: Colors.transparent,
106 | padding: const EdgeInsets.all(7.0),
107 | ),
108 | ),
109 | ],
110 | )
111 | ]));
112 | }
113 | }
114 |
--------------------------------------------------------------------------------
/lib/bodegaPage123.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | //creamos Page de adminitracion
4 | class BodegaPage extends StatelessWidget {
5 | @override
6 | Widget build(BuildContext context) {
7 | return new Scaffold(
8 | backgroundColor: Color(0xFFD8D8D8),
9 | appBar: new AppBar(
10 | title: new Text("Bodega - Ventas"), backgroundColor: Colors.blueAccent),
11 | body: Column(
12 | children: [
13 | Row(
14 | //ROW 1
15 | children: [
16 | Container(
17 | padding: EdgeInsets.all(8.0),
18 | child: new RawMaterialButton(
19 | onPressed: () {
20 | Navigator.pushReplacementNamed(context, '/pages/listarUsuarios');
21 | },
22 | child: new Icon(
23 | Icons.people,
24 | color: Colors.blueAccent,
25 | size: 63.0,
26 | ),
27 | shape: new CircleBorder(),
28 | elevation: 2.0,
29 | fillColor: Colors.white,
30 | padding: const EdgeInsets.all(7.0),
31 | ),
32 | ),
33 | Container(
34 | padding: EdgeInsets.all(7.0),
35 | child: new RawMaterialButton(
36 | onPressed: () {
37 | Navigator.pushReplacementNamed(context, '/LoginPage');
38 | },
39 | child: new Icon(
40 | Icons.list,
41 | color: Colors.grey[300],
42 | size: 63.0,
43 | ),
44 | shape: new CircleBorder(),
45 | elevation: 2.0,
46 | fillColor: Colors.white,
47 | padding: const EdgeInsets.all(7.0),
48 | ),
49 | ),
50 | Container(
51 | padding: EdgeInsets.all(7.0),
52 | child: new RawMaterialButton(
53 | onPressed: () {
54 | Navigator.pushReplacementNamed(context, '/LoginPage');
55 | },
56 | child: new Icon(
57 | Icons.cloud_done,
58 | color: Colors.greenAccent,
59 | size: 63.0,
60 | ),
61 | shape: new CircleBorder(),
62 | elevation: 2.0,
63 | fillColor: Colors.white,
64 | padding: const EdgeInsets.all(7.0),
65 | ),
66 | ),
67 | Container(
68 | padding: EdgeInsets.all(7.0),
69 | child: new RawMaterialButton(
70 | onPressed: () {
71 | Navigator.pushReplacementNamed(context, '/LoginPage');
72 | },
73 | child: new Icon(
74 | Icons.shopping_cart,
75 | color: Colors.orangeAccent[100],
76 | size: 63.0,
77 | ),
78 | shape: new CircleBorder(),
79 | elevation: 2.0,
80 | fillColor: Colors.white,
81 | padding: const EdgeInsets.all(7.0),
82 | ),
83 | ),
84 | ],
85 | ),
86 | Row(//ROW 2
87 | children: [
88 | Container(
89 | padding: EdgeInsets.all(7.0),
90 | child: new RawMaterialButton(
91 | onPressed: () {
92 | Navigator.pushReplacementNamed(context, '/pages/listarUsuarios');
93 | },
94 | child: new Icon(
95 | Icons.settings,
96 | color: Colors.redAccent,
97 | size: 63.0,
98 | ),
99 | shape: new CircleBorder(),
100 | elevation: 2.0,
101 | fillColor: Colors.white,
102 | padding: const EdgeInsets.all(7.0),
103 | ),
104 | ),
105 | ]),
106 | //Row 4
107 | Row(
108 | children: [
109 | Container(
110 | padding: EdgeInsets.all(7.0),
111 | child: new RawMaterialButton(
112 | onPressed: () {
113 | Navigator.pushReplacementNamed(context, '/LoginPage');
114 | },
115 | child: new Icon(
116 | Icons.exit_to_app,
117 | color: Colors.red[900],
118 | size: 70.0,
119 | ),
120 | shape: new CircleBorder(),
121 | elevation: 2.0,
122 | fillColor: Colors.transparent,
123 | padding: const EdgeInsets.all(7.0),
124 | ),
125 | ),
126 | ],
127 | )
128 | ]));
129 | }
130 | }
131 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'dart:convert';
3 |
4 | import 'package:flutter/material.dart';
5 | import 'package:http/http.dart' as http;
6 | import 'package:tienda_app_flutter/bodegaPage.dart';
7 | import 'package:tienda_app_flutter/powerPage.dart';
8 |
9 | void main() => runApp(new MyApp());
10 |
11 | String username='';
12 |
13 | class MyApp extends StatelessWidget {
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | return new MaterialApp(
18 | debugShowCheckedModeBanner: false,
19 | title: 'Login PHP My Admin',
20 | home: new MyHomePage(),
21 | routes: {
22 | '/powerPage': (BuildContext context)=> new SuperV(username: username,),
23 | '/bodegaPage': (BuildContext context)=> new BodegaPage(username: username,),
24 | '/MyHomePage': (BuildContext context)=> new MyHomePage(),
25 | },
26 | );
27 | }
28 | }
29 |
30 | class MyHomePage extends StatefulWidget {
31 | @override
32 | _MyHomePageState createState() => _MyHomePageState();
33 | }
34 |
35 | class _MyHomePageState extends State {
36 |
37 | TextEditingController user=new TextEditingController();
38 | TextEditingController pass=new TextEditingController();
39 |
40 | String msg='';
41 |
42 | Future _login() async {
43 | final response = await http.post("http://10.0.2.2/my_store/login.php", body: {
44 | "username": user.text,
45 | "password": pass.text,
46 | });
47 |
48 | var datauser = json.decode(response.body);
49 |
50 | if(datauser.length==0){
51 | setState(() {
52 | msg="Login Fail";
53 | });
54 | }else{
55 | if(datauser[0]['nivel']=='super'){
56 | Navigator.pushReplacementNamed(context, '/powerPage');
57 | }else if(datauser[0]['nivel']=='bodega'){
58 | Navigator.pushReplacementNamed(context, '/bodegaPage');
59 | }
60 |
61 | setState(() {
62 | username= datauser[0]['username'];
63 | });
64 |
65 | }
66 |
67 | return datauser;
68 | }
69 |
70 | @override
71 | Widget build(BuildContext context) {
72 | return Scaffold(
73 | appBar: AppBar(title: Text("Login"),),
74 | body: Container(
75 | child: Center(
76 | child: Column(
77 | children: [
78 | Text("Username",style: TextStyle(fontSize: 18.0),),
79 | TextField(
80 | controller: user,
81 | decoration: InputDecoration(
82 | hintText: 'Username'
83 | ),
84 | ),
85 | Text("Password",style: TextStyle(fontSize: 18.0),),
86 | TextField(
87 | controller: pass,
88 | obscureText: true,
89 | decoration: InputDecoration(
90 | hintText: 'Password'
91 | ),
92 | ),
93 |
94 | RaisedButton(
95 | child: Text("Login"),
96 | onPressed: (){
97 | _login();
98 | Navigator.pop(context);
99 | },
100 | ),
101 |
102 | Text(msg,style: TextStyle(fontSize: 20.0,color: Colors.red),)
103 |
104 |
105 | ],
106 | ),
107 | ),
108 | ),
109 | );
110 | }
111 | }
--------------------------------------------------------------------------------
/lib/pages/detail.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:tienda_app_flutter/pages/listarUsuarios.dart';
3 | import './editdata.dart';
4 | import 'package:http/http.dart' as http;
5 |
6 |
7 | class Detail extends StatefulWidget {
8 | List list;
9 | int index;
10 | Detail({this.index,this.list});
11 | @override
12 | _DetailState createState() => new _DetailState();
13 | }
14 |
15 | class _DetailState extends State {
16 |
17 | void deleteData(){
18 | var url="http://10.0.2.2/tienda/deleteData.php";
19 | http.post(url, body: {
20 | 'id': widget.list[widget.index]['id']
21 | });
22 | }
23 |
24 | void confirm (){
25 | AlertDialog alertDialog = new AlertDialog(
26 | content: new Text("Esta seguto de eliminar '${widget.list[widget.index]['username']}'"),
27 | actions: [
28 | new RaisedButton(
29 | child: new Text("OK Eliminado!",style: new TextStyle(color: Colors.black),),
30 | color: Colors.red,
31 | onPressed: (){
32 | deleteData();
33 | Navigator.of(context).push(
34 | new MaterialPageRoute(
35 | builder: (BuildContext context)=> new Home(),
36 | )
37 | );
38 | },
39 | ),
40 | new RaisedButton(
41 | child: new Text("CANCELAR",style: new TextStyle(color: Colors.black)),
42 | color: Colors.green,
43 | onPressed: ()=> Navigator.pop(context),
44 | ),
45 | ],
46 | );
47 |
48 | showDialog(context: context, child: alertDialog);
49 | }
50 |
51 | @override
52 | Widget build(BuildContext context) {
53 | return new Scaffold(
54 | appBar: new AppBar(title: new Text("${widget.list[widget.index]['username']}")),
55 | body: new Container(
56 | height: 270.0,
57 | padding: const EdgeInsets.all(20.0),
58 | child: new Card(
59 | child: new Center(
60 | child: new Column(
61 | children: [
62 |
63 | new Padding(padding: const EdgeInsets.only(top: 30.0),),
64 | new Text(widget.list[widget.index]['username'], style: new TextStyle(fontSize: 20.0),),
65 | Divider(),
66 | new Text("Nivel : ${widget.list[widget.index]['nivel']}", style: new TextStyle(fontSize: 18.0),),
67 | new Padding(padding: const EdgeInsets.only(top: 30.0),),
68 |
69 | new Row(
70 | mainAxisSize: MainAxisSize.min,
71 | children: [
72 | new RaisedButton(
73 | child: new Text("EDITAR"),
74 | color: Colors.blueAccent,
75 | shape: new RoundedRectangleBorder(
76 | borderRadius: new BorderRadius.circular(30.0)),
77 | onPressed: ()=>Navigator.of(context).push(
78 | new MaterialPageRoute(
79 | builder: (BuildContext context)=>new EditData(list: widget.list, index: widget.index,),
80 | )
81 | ),
82 | ),
83 | VerticalDivider(),
84 | new RaisedButton(
85 | child: new Text("ELIMINAR"),
86 | color: Colors.redAccent,
87 | shape: new RoundedRectangleBorder(
88 | borderRadius: new BorderRadius.circular(30.0)),
89 | onPressed: ()=>confirm(),
90 | ),
91 | ],
92 | )
93 | ],
94 | ),
95 | ),
96 | ),
97 | ),
98 | );
99 | }
100 | }
--------------------------------------------------------------------------------
/lib/pages/editdata.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:http/http.dart' as http;
3 | import 'package:tienda_app_flutter/pages/listarUsuarios.dart';
4 |
5 |
6 | class EditData extends StatefulWidget {
7 | final List list;
8 | final int index;
9 |
10 | EditData({this.list, this.index});
11 |
12 | @override
13 | _EditDataState createState() => new _EditDataState();
14 | }
15 |
16 | class _EditDataState extends State {
17 |
18 | TextEditingController controllerUsername;
19 | TextEditingController controllerPassword;
20 | TextEditingController controllerNivel;
21 |
22 |
23 |
24 | void editData() {
25 | var url="http://10.0.2.2/tienda/editdata.php";
26 | http.post(url,body: {
27 | "id": widget.list[widget.index]['id'],
28 | "username": controllerUsername.text,
29 | "password": controllerPassword.text,
30 | "nivel": controllerNivel.text
31 | });
32 | }
33 |
34 |
35 | @override
36 | void initState() {
37 | controllerUsername= new TextEditingController(text: widget.list[widget.index]['username'] );
38 | controllerPassword= new TextEditingController(text: widget.list[widget.index]['password'] );
39 | controllerNivel= new TextEditingController(text: widget.list[widget.index]['nivel'] );
40 | super.initState();
41 | }
42 |
43 | @override
44 | Widget build(BuildContext context) {
45 | return new Scaffold(
46 | appBar: new AppBar(
47 | title: new Text("EDITAR"),
48 | ),
49 | body: Form(
50 | child: ListView(
51 | padding: const EdgeInsets.all(10.0),
52 | children: [
53 | new Column(
54 | children: [
55 | new ListTile(
56 | leading: const Icon(Icons.person, color: Colors.black),
57 | title: new TextFormField(
58 | controller: controllerUsername,
59 | validator: (value) {
60 | if (value.isEmpty) return "Ingresa un nombre de usurio";
61 | },
62 | decoration: new InputDecoration(
63 | hintText: "Usurio", labelText: "Usuario",
64 | ),
65 | ),
66 | ),
67 | new ListTile(
68 | leading: const Icon(Icons.location_on, color: Colors.black),
69 | title: new TextFormField(
70 | controller: controllerPassword,
71 | validator: (value) {
72 | if (value.isEmpty) return "Ingresa una Contraseña";
73 | },
74 | decoration: new InputDecoration(
75 | hintText: "Contraseña", labelText: "Contraseña",
76 | ),
77 | ),
78 | ),
79 | new ListTile(
80 | leading: const Icon(Icons.settings_input_component, color: Colors.black),
81 | title: new TextFormField(
82 | controller: controllerNivel,
83 | validator: (value) {
84 | if (value.isEmpty) return "Ingresa un Nivel";
85 | },
86 | decoration: new InputDecoration(
87 | hintText: "Nivel", labelText: "Nivel",
88 | ),
89 | ),
90 | ),
91 | const Divider(
92 | height: 1.0,
93 | ),
94 | new Padding(
95 | padding: const EdgeInsets.all(10.0),
96 | ),
97 | new RaisedButton(
98 | child: new Text("Guardar"),
99 | color: Colors.blueAccent,
100 | onPressed: () {
101 | editData();
102 | Navigator.of(context).push(
103 | new MaterialPageRoute(
104 | builder: (BuildContext context)=>new Home()
105 | )
106 | );
107 | },
108 | )
109 | ],
110 | ),
111 | ],
112 | ),
113 | ),
114 | );
115 | }
116 | }
--------------------------------------------------------------------------------
/lib/pages/listarUsuarios.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:http/http.dart' as http;
3 | import 'package:tienda_app_flutter/pages/detail.dart';
4 |
5 | import 'dart:async';
6 | import 'dart:convert';
7 |
8 | import 'package:tienda_app_flutter/pages/registroUsuarios.dart';
9 |
10 | class Home extends StatefulWidget {
11 | @override
12 | _HomeState createState() => new _HomeState();
13 | }
14 |
15 | class _HomeState extends State {
16 | Future getData() async {
17 | final response = await http.get("http://10.0.2.2/tienda/getdata.php");
18 | return json.decode(response.body);
19 | }
20 |
21 | @override
22 | Widget build(BuildContext context) {
23 | return new Scaffold(
24 | appBar: new AppBar(
25 | title: new Text("Listado Usuarios"),
26 | ),
27 | floatingActionButton: new FloatingActionButton(
28 | child: new Icon(Icons.add),
29 | onPressed: () => Navigator.of(context).push(new MaterialPageRoute(
30 | builder: (BuildContext context) => new AddData(),
31 | )),
32 | ),
33 | body: new FutureBuilder(
34 | future: getData(),
35 | builder: (context, snapshot) {
36 | if (snapshot.hasError) print(snapshot.error);
37 | return snapshot.hasData
38 | ? new ItemList(
39 | list: snapshot.data,
40 | )
41 | : new Center(
42 | child: new CircularProgressIndicator(),
43 | );
44 | },
45 | ),
46 | );
47 | }
48 | }
49 |
50 | class ItemList extends StatelessWidget {
51 | final List list;
52 | ItemList({this.list});
53 |
54 | @override
55 | Widget build(BuildContext context) {
56 | return new ListView.builder(
57 | itemCount: list == null ? 0 : list.length,
58 | itemBuilder: (context, i) {
59 | return new Container(
60 | padding: const EdgeInsets.all(10.0),
61 | child: new GestureDetector(
62 | onTap: () => Navigator.of(context).push(
63 | new MaterialPageRoute(
64 | builder: (BuildContext context) => new Detail(
65 | list: list,
66 | index: i,
67 | )),
68 | ),
69 | child: new Card(
70 | child: new ListTile(
71 | title: new Text(
72 | list[i]['username'],
73 | style: TextStyle(fontSize: 25.0, color: Colors.orangeAccent),
74 | ),
75 | leading: new Icon(
76 | Icons.person_pin,
77 | size: 77.0,
78 | color: Colors.orangeAccent,
79 | ),
80 | subtitle: new Text(
81 | "Nivel : ${list[i]['nivel']}",
82 | style: TextStyle(fontSize: 20.0, color: Colors.black),
83 | ),
84 | ),
85 | ),
86 | ),
87 | );
88 | },
89 | );
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/lib/pages/registroUsuarios.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:http/http.dart' as http;
3 |
4 | class AddData extends StatefulWidget {
5 | @override
6 | _AddDataState createState() => new _AddDataState();
7 | }
8 |
9 | class _AddDataState extends State {
10 | TextEditingController controllerUsername = new TextEditingController();
11 | TextEditingController controllerPassword = new TextEditingController();
12 | //TextEditingController controllerNivel = new TextEditingController();
13 |
14 | var _formKey = GlobalKey();
15 |
16 | void addData() {
17 | var url = "http://10.0.2.2/tienda/adddata.php";
18 |
19 | http.post(url, body: {
20 | "username": controllerUsername.text,
21 | "password": controllerPassword.text,
22 | "nivel": _mySelection.toString(), //aqui traemos el DropdownMenuItem lo llamamos _mySelection este es como el controller
23 | //"nivel": controllerNivel.text
24 | });
25 | }
26 |
27 | String _mySelection;
28 | List