GithubHelp home page GithubHelp logo

thealphamerc / flutter_ecommerce_app Goto Github PK

View Code? Open in Web Editor NEW
3.0K 3.0K 1.1K 2.37 MB

E-Commerce App built in flutter

License: BSD 2-Clause "Simplified" License

Ruby 2.53% Swift 0.75% Objective-C 0.07% Dart 96.38% Kotlin 0.27%
flutter flutter-app flutter-apps flutter-demo flutter-examples flutter-ui

flutter_ecommerce_app's Introduction

Hi there šŸ‘‹

I am a Software engineer with experience in building intelligent & scalable applications using Flutter, ReactJs, NextJs, and Node. I love mobile apps, distributed systems, open-source projects and the challenges associated with them. I like writing, and sharing my knowledge with other engineers.

  • šŸ”­ Iā€™m currently working on a new open source project Orgnise
  • šŸ‘Æ Iā€™m looking to collaborate on open source Flutter project
  • šŸ’¬ Ask me about Flutter | React | C# | .Net and Xamarin
  • šŸ“« How to reach me: Github, Blog, Twitter, Facebook, Linkedin
  • šŸ˜„ Pronouns: He/him

Last 3 articles published on Dev.to

Visitors Count

Loading

flutter_ecommerce_app's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flutter_ecommerce_app's Issues

`SliverGridDelegateWithFixedCrossAxisCount()` not rendering

Describe the bug
SliverGridDelegateWithFixedCrossAxisCount() not rendering

To Reproduce

Widget _productWidget() {
   return Container(
     margin: const EdgeInsets.symmetric(vertical: 10),
     width: AppTheme.fullWidth(context),
     height: AppTheme.fullWidth(context) * .7,
     child: GridView(
       gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
           crossAxisCount: 1,
           childAspectRatio: 1.0,
           mainAxisSpacing: 0.0,
           crossAxisSpacing: 0.0),
       padding: const EdgeInsets.only(left: 20),
       scrollDirection: Axis.horizontal,
       children: AppData.productList
           .map(
             (product) => ProductCard(
               product: product,
               onSelected: (model) {
                 setState(() {
                   AppData.productList.forEach((item) {
                     // item.isSelected;
                   });
                   // model.isSelected = true;
                 });
               },
             ),
           )
           .toList(),
     ),
   );
 }

renders me a black screen with the search bar atop. I have no idea what the issue could be. Thanks!

Upgrade to Dart 3

Is your feature request related to a problem? Please describe.
Can't run the app on Dart 3 due to type safety. https://dart.dev/resources/dart-3-migration

Describe the solution you'd like
I would like the app migrated to Dart 3

Describe alternatives you've considered
I tried to migrate it myself but I am a flutter rookie and couldn't make it work.

Adding new icon makes background curve out of sync

Describe the bug
When trying to add a new element in bottom navigation with index 4, Visual white curved background no longer stay in sync with elevated icons. It seems that

To Reproduce
Steps to reproduce the behavior:

  1. In bottom_navigation_bar, go to line 168
  2. add another instance of _icon with index 4.
  3. Run app
  4. White curved white bar which move with elastic effect no longer remains behind the selected icon.

Expected behavior
Curved background should dynamically adjust based on number of elements in bottom tabs.

Smartphone (please complete the following information):

  • Device: Samsung Note 9
  • OS: Android 10

error: The named parameter 'bodyText1' isn't defined. (undefined_named_parameter at [flutter_ecommerce_app] lib\src\themes\theme.dart:11)

Describe the bug
error: The named parameter 'bodyText1' isn't defined. (undefined_named_parameter at [flutter_ecommerce_app] lib\src\themes\theme.dart:11)

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

A RenderFlex overflowed by 2.3 pixels on the bottom.

Describe the bug
A RenderFlex overflowed by 2.3 pixels on the bottom.
2020-07-29_003930
Screenshot_20200729-001506

Smartphone (please complete the following information):

  • Device: HTC U11
  • OS: Android 9

I added a semi-transparent black background for the picture. You can find that the background heights of the two pictures are different, which may cause errors in phones of different sizes.
Screenshot_20200729-001720

So you can add "Expanded" and let it automatically adjust the height to avoid errors.
2020-07-29_005507
Screenshot_20200729-002714

m getting this error

`Note: /home/law/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.1/android/src/main/java/io/flutter/plugins/pathprovider/PathProviderPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':path_provider:extractDebugAnnotations'.

Could not resolve all files for configuration ':path_provider:lintClassPath'.
Could not download lint-gradle.jar (com.android.tools.lint:lint-gradle:26.5.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/26.5.0/lint-gradle-26.5.0.jar'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/26.5.0/lint-gradle-26.5.0.jar'.
> dl.google.com: Temporary failure in name resolution
Could not download lint.jar (com.android.tools.lint:lint:26.5.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint/26.5.0/lint-26.5.0.jar'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint/26.5.0/lint-26.5.0.jar'.
> dl.google.com
Could not download lint-checks.jar (com.android.tools.lint:lint-checks:26.5.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-checks/26.5.0/lint-checks-26.5.0.jar'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-checks/26.5.0/lint-checks-26.5.0.jar'.
> dl.google.com
Could not download lint-api.jar (com.android.tools.lint:lint-api:26.5.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-api/26.5.0/lint-api-26.5.0.jar'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-api/26.5.0/lint-api-26.5.0.jar'.
> dl.google.com
Could not download intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.5.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/intellij-core/26.5.0/intellij-core-26.5.0.jar'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/intellij-core/26.5.0/intellij-core-26.5.0.jar'.
> dl.google.com
Could not download kotlin-compiler.jar (com.android.tools.external.com-intellij:kotlin-compiler:26.5.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/kotlin-compiler/26.5.0/kotlin-compiler-26.5.0.jar'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/kotlin-compiler/26.5.0/kotlin-compiler-26.5.0.jar'.
> dl.google.com
Could not download uast.jar (com.android.tools.external.org-jetbrains:uast:26.5.0)
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/external/org-jetbrains/uast/26.5.0/uast-26.5.0.jar'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/external/org-jetbrains/uast/26.5.0/uast-26.5.0.jar'.
> dl.google.com

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 4m 6s `

Facing issue in splash screen

Logo is not aligned
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Android Studio Issue

When I open this project in Android Studio is see this issue in Windows 10. Guess I should mention I am new to Flutter and Dart.
image

isInitialRoute error

The getter 'isInitialRoute' isn't defined for the type 'RouteSettings'.
Try importing the library that defines 'isInitialRoute', correcting the name to the name of an existing getter, or defining a getter or field named 'isInitialRoute'.

error

Error when run

Hello,
When i run app it have error:
Compiler message:
../flutter/.pub-cache/hosted/pub.dartlang.org/google_fonts-0.3.9/lib/src/google_fonts_base.dart:185:30: Error: The method 'handleSystemMessage' isn't defined for the class 'PaintingBinding'.

  • 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('../flutter/packages/flutter/lib/src/painting/binding.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'handleSystemMessage'.
    PaintingBinding.instance.handleSystemMessage({'type': 'fontsChange'});
    ^^^^^^^^^^^^^^^^^^^
    Compiler failed on /Users/quanghoa/FLUTTER/flutter_ecommerce_app/lib/main.dart

FAILURE: Build failed with an exception.

  • Where:
    Script '/Users/quanghoa/FLUTTER/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 789

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebugX86'.

Process 'command '/Users/quanghoa/FLUTTER/flutter/bin/flutter'' finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 13s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 13.9s
Gradle task assembleDebug failed with exit code 1

Error: No named parameter with the name 'display4'

Describe the bug
When i run the app following error is thrown and build fails with exit code 1.

Launching lib\main.dart on RMX1851 in debug mode...
Running Gradle task 'assembleDebug'...
/D:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/google_fonts-0.3.9/lib/google_fonts.dart:109:7: Error: No named parameter with the name 'display4'.
      display4: GoogleFonts.aBeeZee(textStyle: textTheme?.display4),
      ^^^^^^^^


FAILURE: Build failed with an exception.

* Where:
Script 'D:\src\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1005

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'D:\src\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 21s
Exception: Gradle task assembleDebug failed with exit code 1

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repo https://github.com/TheAlphamerc/flutter_ecommerce_app.git
  2. Click on 'pub get'
  3. Run
  4. See error

Expected behavior
App was expected to be build

Screenshots

sas

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

flutter doctor

F:\flutter_ecommerce_app>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
 Flutter (Channel stable, 2.5.0, on Microsoft Windows [Version 10.0.19043.1151], locale en-US)
[āˆš] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[āˆš] Chrome - develop for the web
[āˆš] Android Studio (version 2020.3)
[āˆš] VS Code (version 1.60.1)
[āˆš] Connected device (3 available)

ā€¢ No issues found!

flutter doctor verbose

F:\Fluttter Apps\customer>flutter doctor -v
[āˆš] Flutter (Channel stable, 2.5.0, on Microsoft Windows [Version 10.0.19043.1151], locale en-US)
    ā€¢ Flutter version 2.5.0 at D:\src\flutter\flutter
    ā€¢ Upstream repository https://github.com/flutter/flutter.git
    ā€¢ Framework revision 4cc385b4b8 (13 days ago), 2021-09-07 23:01:49 -0700
    ā€¢ Engine revision f0826da7ef
    ā€¢ Dart version 2.14.0

[āˆš] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    ā€¢ Android SDK at C:\Users\LAKHN KUMAWAT\AppData\Local\Android\sdk
    ā€¢ Platform android-31, build-tools 31.0.0
    ā€¢ Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    ā€¢ Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    ā€¢ All Android licenses accepted.

[āˆš] Chrome - develop for the web
    ā€¢ Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[āˆš] Android Studio (version 2020.3)
    ā€¢ Android Studio at C:\Program Files\Android\Android Studio
    ā€¢ Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    ā€¢ Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    ā€¢ Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[āˆš] VS Code (version 1.60.1)
    ā€¢ VS Code at C:\Users\LAKHN KUMAWAT\AppData\Local\Programs\Microsoft VS Code
    ā€¢ Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[āˆš] Connected device (3 available)
    ā€¢ RMX1851 (mobile) ā€¢ 4e5981a2 ā€¢ android-arm64  ā€¢ Android 11 (API 30)
    ā€¢ Chrome (web)     ā€¢ chrome   ā€¢ web-javascript ā€¢ Google Chrome 93.0.4577.82
    ā€¢ Edge (web)       ā€¢ edge     ā€¢ web-javascript ā€¢ Microsoft Edge 93.0.961.47

ā€¢ No issues found!

flutter version

F:\flutter_ecommerce_app>flutter --version
Flutter 2.5.0 ā€¢ channel stable ā€¢ https://github.com/flutter/flutter.git
Framework ā€¢ revision 4cc385b4b8 (9 days ago) ā€¢ 2021-09-07 23:01:49 -0700
Engine ā€¢ revision f0826da7ef
Tools ā€¢ Dart 2.14.0

PS - I cloned the repo today itself for first time

Execution failed for task ':app:processDebugResources'.

Describe the bug
After installing package while trying to run in emulator It gives this error message.

 FAILURE: Build failed with an exception.
  • What went wrong:
    Execution failed for task ':app:processDebugResources'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource linking failed
I:\Flutter\flutter_ecommerce_app-master\android\app\src\main\res\drawable\launch_background.xml:13: AAPT: error: resource drawable/ic_launcher (aka com.thealphamerc.flutter_ecommerce_app:drawable/ic_launcher) not found.
I:\Flutter\flutter_ecommerce_app-master\android\app\src\main\res\drawable-v21\launch_background.xml:13: AAPT: error: resource drawable/ic_launcher (aka com.thealphamerc.flutter_ecommerce_app:drawable/ic_launcher) not found.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org

The build failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetifier to solve the incompatibility.
[!] Flutter tried to create the file android\settings_aar.gradle, but failed.
To manually update settings.gradle, follow these steps:
1. Copy settings.gradle as settings_aar.gradle
2. Remove the following code from settings_aar.gradle:
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
def properties = new Properties()
assert localPropertiesFile.exists()
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
Exception: Please create the file and run this command again.

2021-08-26 10_19_50-Window

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.