Giter VIP home page Giter VIP logo

flutter_template's Introduction

Flutter Template

codecov flutter_template style: very good analysis

important web isn't supported yet, since the web view plug-in used for auth doesnt support web I should get to this early August

To use as template

To Replace the app name with your app name

  1. open and add your add name to replace_app_name.sh
  2. run the script

To replace the signin screen url

https://github.com/jeremiahlukus/flutter_template/blob/master/lib/auth/infrastructure/webapp_authenticator.dart#L47-L56

A Real App that i am developing with this template is https://github.com/jeremiahlukus/guitar_tabs

What to accomplish

  1. has tests
  2. basic auth flow
  3. riverpod as state provider
  4. logging (sentry)
  5. navigation (I used Beamer last time but might be something better out now)
  6. basic dashboard screen display user information
  7. basic settings screen to modify user profile.
  8. built in responsiveness
  9. built in flavors (dev,staging,prod)

Top TODOs

  1. run web integration tests in github actions

DONE

  1. full test suite running in github actions
  2. logging with sentry monitoring
  3. riverpod
  4. Flavors configured
  5. built in responsiveness
  6. full CI lint/unit/integration
  7. Pre-Push githook to force lint before pushing
  8. setup login flow

Getting Started ๐Ÿš€

First step

Setup your backend to login a user. On login the path needs to be be /callback?state=6meYRKLtQMSGctx2UXsxCd4L the state is your api token. I logout using the api part of my backend /api/v1/auth in this call i delete the users token. Soon ill add a refresh token endpoint.

I separated the WebAppAuthenticator so you can easily replace with your solution.

Second step

Run dart pub global activate derry This will allow you to run commands defined in derry.yaml like derry lint Support for running integration tests with flavors is added flutter/flutter#89045 If you are on master you can run derry test_all or derry e2e_iphone

To run unit tests derry unit_test

This project contains 3 flavors:

  • development
  • staging
  • production

To run the desired flavor either use the launch configuration in VSCode/Android Studio or use the following commands:

# Development
$ flutter run --flavor development --target lib/main_development.dart

# Staging
$ flutter run --flavor staging --target lib/main_staging.dart

# Production
$ flutter run --flavor production --target lib/main_production.dart

*Flutter Template works on iOS, Android, and Web.


Running in Docker

Start local emulator

  1. install android studio and set up a emulator
  2. ln -s ~/Library/Android/sdk/tools/emulator /usr/local/bin/emulator
  3. emulator -list-avds should list out your installed devices
  4. export the paths
export ANDROID_SDK=$HOME/Library/Android/sdk
export PATH=$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$PATH

  1. run emulator -avd $(emulator -list-avds) to open the emulator.
  2. adb tcpip 5555 After doing all the setup above you only need to run this command from here on out.

Setup

  1. Download Visual Studio
  2. Install Docker Plugin
  3. Install Remote Development Plugin
  4. Optional Download Docker Desktop

Once you have installed all of these, open Visual Studio and open this project. Visual Studio will auto detect the Dockerfile and build it for you as well as copy the project files in the docker container using settings from the devcontainer.json file. If you have a andriod emulator open and have typed adb tcpip 5555 into your terminal the device should show up in the docker container type adb devices to make sure if not follow the steps below

For Web

In Docker

  1. Run sh flutter-web.sh

For Android:

  1. Open up an android emulator / or plugin your device
  2. type adb devices and make sure the device shows if it doesnt kill and restart your server adb kill-server & adb start-server
  3. in your terminal type adb tcpip 5555

In the docker continer:

  1. Run adb connect host.docker.internal:5555
  2. clilck allow permission on the andriod
  3. sh flutter-android-emulator.sh

Errors: If you get The message received from the daemon indicates that the daemon has disappeared. When trying to launch on android increase your docker memory to 4 gigs. Do this by going to the docker app -> preferences -> resourses

Running Tests ๐Ÿงช

To run all unit and widget tests use the following command:

$ derry test_all
$ derry e2e
$ derry unit

To view the generated coverage report you can use lcov.

# Generate Coverage Report
$ genhtml coverage/lcov.info -o coverage/

# Open Coverage Report
$ open coverage/index.html

flutter_template's People

Contributors

dependabot[bot] avatar jeremiahlukus avatar victoreronmosele avatar

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

Watchers

 avatar  avatar  avatar

flutter_template's Issues

Sign in connection refused on Android

Me again :P

NOTE: running directly from VSCode, not through Docker.

I'm running on an android emulator (Pixel 2 - API 25), and I'm getting the following error when I click the sign in button:

image

Here's the log output:

Launching lib/main_development.dart on Android SDK built for x86 in debug mode...
lib/main_development.dart:1
โœ“  Built build/app/outputs/flutter-apk/app-development-debug.apk.
W/FlutterActivityAndFragmentDelegate( 7255): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
Connecting to VM Service at ws://127.0.0.1:37045/5-1YxSY8wrM=/ws
D/NetworkSecurityConfig( 7255): No Network Security Config specified, using platform default
D/skia    ( 7255): Shader compilation error
D/skia    ( 7255): ------------------------
D/skia    ( 7255): Errors:
D/skia    ( 7255): link failed but did not provide an info log
2
E/eglCodecCommon( 7255): glUtilsParamSize: unknow param 0x00008741
D/skia    ( 7255): Shader compilation error
D/skia    ( 7255): ------------------------
D/skia    ( 7255): Errors:
D/skia    ( 7255): link failed but did not provide an info log
2
E/eglCodecCommon( 7255): glUtilsParamSize: unknow param 0x00008741
D/EGL_emulation( 7255): eglCreateContext: 0x9e7ab1e0: maj 3 min 0 rcv 3
D/EGL_emulation( 7255): eglMakeCurrent: 0x9e7ab1e0: ver 3 0 (tinfo 0x8c17d250)
E/eglCodecCommon( 7255): glUtilsParamSize: unknow param 0x00008cdf
E/eglCodecCommon( 7255): glUtilsParamSize: unknow param 0x00008824
I/VideoCapabilities( 7255): Unsupported profile 4 for video/mp4v-es
D/EGL_emulation( 7255): eglCreateContext: 0x9e7acd40: maj 3 min 0 rcv 3
D/EGL_emulation( 7255): eglMakeCurrent: 0x9e7acd40: ver 3 0 (tinfo 0x8c17d250)
E/eglCodecCommon( 7255): glUtilsParamSize: unknow param 0x00008cdf
E/eglCodecCommon( 7255): glUtilsParamSize: unknow param 0x00008824
E/eglCodecCommon( 7255): glUtilsParamSize: unknow param 0x00008a34
E/eglCodecCommon( 7255): glUtilsParamSize: unknow param 0x00008073
E/eglCodecCommon( 7255): glUtilsParamSize: unknow param 0x000088ff
3
W/cr_BindingManager( 7255): Cannot call determinedVisibility() - never saw a connection for the pid: 7255
W/art     ( 7255): Attempt to remove non-JNI local reference, dumping thread
2
D/EGL_emulation( 7255): eglMakeCurrent: 0x9c9da600: ver 3 0 (tinfo 0x9c9c9a50)
W/art     ( 7255): Attempt to remove non-JNI local reference, dumping thread
2
D/EGL_emulation( 7255): eglMakeCurrent: 0x9c9da600: ver 3 0 (tinfo 0x9c9c9a50)
W/art     ( 7255): Attempt to remove non-JNI local reference, dumping thread
2
D/EGL_emulation( 7255): eglMakeCurrent: 0x9c9da600: ver 3 0 (tinfo 0x9c9c9a50)
W/art     ( 7255): Attempt to remove non-JNI local reference, dumping thread
2
D/EGL_emulation( 7255): eglMakeCurrent: 0x9c9da600: ver 3 0 (tinfo 0x9c9c9a50)
W/art     ( 7255): Attempt to remove non-JNI local reference, dumping thread
2
D/EGL_emulation( 7255): eglMakeCurrent: 0x9c9da600: ver 3 0 (tinfo 0x9c9c9a50)
W/art     ( 7255): Attempt to remove non-JNI local reference, dumping thread
2
D/EGL_emulation( 7255): eglMakeCurrent: 0x9c9da600: ver 3 0 (tinfo 0x9c9c9a50)
W/art     ( 7255): Attempt to remove non-JNI local reference, dumping thread
2
D/EGL_emulation( 7255): eglMakeCurrent: 0x9c9da600: ver 3 0 (tinfo 0x9c9c9a50)
W/art     ( 7255): Attempt to remove non-JNI local reference, dumping thread
2
D/EGL_emulation( 7255): eglMakeCurrent: 0x9c9da600: ver 3 0 (tinfo 0x9c9c9a50)
W/art     ( 7255): Attempt to remove non-JNI local reference, dumping thread
2
D/EGL_emulation( 7255): eglMakeCurrent: 0x9c9da600: ver 3 0 (tinfo 0x9c9c9a50)
W/art     ( 7255): Attempt to remove non-JNI local reference, dumping thread
2
D/EGL_emulation( 7255): eglMakeCurrent: 0x9c9da600: ver 3 0 (tinfo 0x9c9c9a50)

flutter doctor output:

> flutter doctor -v
[โœ“] Flutter (Channel stable, 3.0.5, on Ubuntu 20.04.4 LTS
    5.15.0-41-generic, locale en_CA.UTF-8)
    โ€ข Flutter version 3.0.5 at /home/gj/snap/flutter/common/flutter
    โ€ข Upstream repository https://github.com/flutter/flutter.git
    โ€ข Framework revision f1875d570e (3 weeks ago), 2022-07-13 11:24:16
      -0700
    โ€ข Engine revision e85ea0e79c
    โ€ข Dart version 2.17.6
    โ€ข DevTools version 2.12.2

[โœ“] Android toolchain - develop for Android devices (Android SDK version
    32.0.0)
    โ€ข Android SDK at /home/gj/Android/Sdk
    โ€ข Platform android-31, build-tools 32.0.0
    โ€ข ANDROID_HOME = /home/gj/Android/Sdk
    โ€ข Java binary at: /opt/android-studio-4.0/android-studio/jre/bin/java
    โ€ข Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    โ€ข All Android licenses accepted.

[โœ“] Chrome - develop for the web
    โ€ข CHROME_EXECUTABLE = /usr/bin/google-chrome

[โœ“] Linux toolchain - develop for Linux desktop
    โ€ข clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
    โ€ข cmake version 3.10.2
    โ€ข ninja version 1.8.2
    โ€ข pkg-config version 0.29.1

[โœ“] Android Studio (version 4.0)
    โ€ข Android Studio at /opt/android-studio-4.0/android-studio
    โ€ข Flutter plugin version 51.0.1
    โ€ข Dart plugin version 193.7547
    โ€ข Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[โœ“] Android Studio
    โ€ข Android Studio at /opt/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
      1.8.0_242-release-1644-b3-6222593)

[โœ“] Android Studio
    โ€ข Android Studio at /home/gj/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.69.2)
    โ€ข VS Code at /usr/share/code
    โ€ข Flutter extension version 3.44.0

[โœ“] Connected device (3 available)
    โ€ข Android SDK built for x86 (mobile) โ€ข emulator-5554 โ€ข android-x86    โ€ข
      Android 7.1.1 (API 25) (emulator)
    โ€ข Linux (desktop)                    โ€ข linux         โ€ข linux-x64      โ€ข
      Ubuntu 20.04.4 LTS 5.15.0-41-generic
    โ€ข Chrome (web)                       โ€ข chrome        โ€ข web-javascript โ€ข
      Google Chrome 103.0.5060.134

[โœ“] HTTP Host Availability
    โ€ข All required HTTP hosts are available

โ€ข No issues found!

Web support

important web isn't supported yet, since the web view plug-in used for auth doesnt support web I should get to this early August

Hi @jeremiahlukus , any update on this ?
I found your repo while searching for very_good + riverpod. Thanks for making it :)

But now that mason is out, I'm wondering if we shouldn't use bricks instead ?

Error: Unsupported operation: Platform._operatingSystem

First, I love the template! Very nice work.

Second, I'm sorry if I didn't follow instructions properly. I didn't understand this instruction from the README: Setup your backend to login a user.

I'm trying to run the template using the launch configuration in VSCode (ie. not using Docker). It launches on chrome by default, which is what I want.

I'm running on Ubuntu 20.04 but I don't think that should matter. Anyway, my flutter doctor output is included below.

The splash screen and sign in page load just fine.

image

Unfortunately, when I click the Sign in button I get the following exception:

Launching lib/main_development.dart on Chrome in debug mode...
lib/main_development.dart:1
This app is linked to the debug service: ws://127.0.0.1:39817/daVhbIDNFFs=/ws
Debug service listening on ws://127.0.0.1:39817/daVhbIDNFFs=/ws
๐Ÿ’ช Running with sound null safety ๐Ÿ’ช
Connecting to VM Service at ws://127.0.0.1:39817/daVhbIDNFFs=/ws
Flutter Web Bootstrap: Auto
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ”‚ #0   packages/flutter_template/core/infrastructure/provider_logger.dart 48:21  didUpdateProvider
โ”‚ #1   packages/riverpod/src/framework/container.dart 48:7                       _runQuaternaryGuarded
โ”œโ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„
โ”‚ ๐Ÿ’ก {
โ”‚ ๐Ÿ’ก   "didUpdateProvider": {
โ”‚ ๐Ÿ’ก     "type": "StateNotifierProvider<AuthNotifier, AuthState>",
โ”‚ ๐Ÿ’ก     "new_value": "AuthState.unauthenticated()",
โ”‚ ๐Ÿ’ก     "old_value": "AuthState.initial()"
โ”‚ ๐Ÿ’ก   }
โ”‚ ๐Ÿ’ก }
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ”‚ #0   packages/flutter_template/core/infrastructure/provider_logger.dart 48:21  didUpdateProvider
โ”‚ #1   packages/riverpod/src/framework/container.dart 48:7                       _runQuaternaryGuarded
โ”œโ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„โ”„
โ”‚ ๐Ÿ’ก {
โ”‚ ๐Ÿ’ก   "didUpdateProvider": {
โ”‚ ๐Ÿ’ก     "type": "FutureProvider<Unit>",
โ”‚ ๐Ÿ’ก     "new_value": "AsyncData<Unit>(value: ())",
โ”‚ ๐Ÿ’ก     "old_value": "AsyncLoading<Unit>()"
โ”‚ ๐Ÿ’ก   }
โ”‚ ๐Ÿ’ก }
 

Error: Unsupported operation: Platform._operatingSystem
    at Object.throw_ [as throw] (http://localhost:37881/dart_sdk.js:5080:11)
    at _Platform._operatingSystem (http://localhost:37881/dart_sdk.js:57539:17)
    at get operatingSystem [as operatingSystem] (http://localhost:37881/dart_sdk.js:57585:27)
    at get _operatingSystem (http://localhost:37881/dart_sdk.js:57498:27)
    at desc.get [as _operatingSystem] (http://localhost:37881/dart_sdk.js:5565:17)
    at get operatingSystem [as operatingSystem] (http://localhost:37881/dart_sdk.js:57449:26)
at get operatingSystem [as operatingSystem] (http://localhost:37881/packages/platform/src/interface/local_platform.dart.lib.js:25:26)
at get isAndroid [as isAndroid] (http://localhost:37881/packages/platform/src/interface/platform.dart.lib.js:43:19)
at WebAppAuthenticator.authorizationEndpoint (http://localhost:37881/packages/flutter_template/auth/infrastructure/webapp_authenticator.dart.lib.js:86:79)
at webapp_authenticator.WebAppAuthenticator.new.getAuthorizationUrl (http://localhost:37881/packages/flutter_template/auth/infrastructure/webapp_authenticator.dart.lib.js:150:55)
at auth_notifier.AuthNotifier.new.signIn (http://localhost:37881/packages/flutter_template/auth/notifiers/auth_notifier.dart.lib.js:194:78)
    at signIn.next (<anonymous>)   
    at runBody (http://localhost:37881/dart_sdk.js:40660:34)
    at Object._async [as async] (http://localhost:37881/dart_sdk.js:40691:7)
at auth_notifier.AuthNotifier.new.signIn (http://localhost:37881/packages/flutter_template/auth/notifiers/auth_notifier.dart.lib.js:193:20)
at http://localhost:37881/packages/flutter_template/auth/presentation/sign_in_page.dart.lib.js:399:103
at [_handleTap] (http://localhost:37881/packages/flutter/src/material/icon_button.dart.lib.js:42254:31)
at tap.TapGestureRecognizer.new.invokeCallback (http://localhost:37881/packages/flutter/src/gestures/recognizer.dart.lib.js:198:18)
at tap.TapGestureRecognizer.new.handleTapUp (http://localhost:37881/packages/flutter/src/gestures/tap.dart.lib.js:411:42)
at [_checkUp] (http://localhost:37881/packages/flutter/src/gestures/tap.dart.lib.js:217:12)
at tap.TapGestureRecognizer.new.handlePrimaryPointer (http://localhost:37881/packages/flutter/src/gestures/tap.dart.lib.js:166:23)
at tap.TapGestureRecognizer.new.handleEvent (http://localhost:37881/packages/flutter/src/gestures/recognizer.dart.lib.js:444:16)
at [_dispatch] (http://localhost:37881/packages/flutter/src/gestures/pointer_router.dart.lib.js:86:9)
at http://localhost:37881/packages/flutter/src/gestures/pointer_router.dart.lib.js:112:26
    at LinkedMap.new.forEach (http://localhost:37881/dart_sdk.js:27745:11)
at [_dispatchEventToRoutes] (http://localhost:37881/packages/flutter/src/gestures/pointer_router.dart.lib.js:110:29)
at pointer_router.PointerRouter.new.route (http://localhost:37881/packages/flutter/src/gestures/pointer_router.dart.lib.js:105:37)
at binding$5.WidgetsFlutterBinding.new.handleEvent (http://localhost:37881/packages/flutter/src/gestures/binding.dart.lib.js:367:26)
at binding$5.WidgetsFlutterBinding.new.dispatchEvent (http://localhost:37881/packages/flutter/src/gestures/binding.dart.lib.js:355:24)
at binding$5.WidgetsFlutterBinding.new.dispatchEvent (http://localhost:37881/packages/flutter/src/rendering/layer.dart.lib.js:5440:13)
at [_handlePointerEventImmediately] (http://localhost:37881/packages/flutter/src/gestures/binding.dart.lib.js:331:14)
at binding$5.WidgetsFlutterBinding.new.handlePointerEvent (http://localhost:37881/packages/flutter/src/gestures/binding.dart.lib.js:305:43)
at [_flushPointerEventQueue] (http://localhost:37881/packages/flutter/src/gestures/binding.dart.lib.js:295:14)
at [_handlePointerDataPacket] (http://localhost:37881/packages/flutter/src/gestures/binding.dart.lib.js:286:54)
    at Object.invoke1 (http://localhost:37881/dart_sdk.js:191747:7)
    at _engine.EnginePlatformDispatcher.__.invokeOnPointerDataPacket (http://localhost:37881/dart_sdk.js:171943:15)
    at [_onPointerData] (http://localhost:37881/dart_sdk.js:172879:49)
    at http://localhost:37881/dart_sdk.js:173317:28
    at http://localhost:37881/dart_sdk.js:173273:16
    at loggedHandler (http://localhost:37881/dart_sdk.js:172978:11)

Here's my flutter doctor output:

> flutter doctor -v
[โœ“] Flutter (Channel stable, 3.0.5, on Ubuntu 20.04.4 LTS
    5.15.0-41-generic, locale en_CA.UTF-8)
    โ€ข Flutter version 3.0.5 at /home/gj/snap/flutter/common/flutter
    โ€ข Upstream repository https://github.com/flutter/flutter.git
    โ€ข Framework revision f1875d570e (3 weeks ago), 2022-07-13 11:24:16
      -0700
    โ€ข Engine revision e85ea0e79c
    โ€ข Dart version 2.17.6
    โ€ข DevTools version 2.12.2

[โœ“] Android toolchain - develop for Android devices (Android SDK version
    30.0.2)
    โ€ข Android SDK at /home/gj/Android/Sdk
    โ€ข Platform android-30, build-tools 30.0.2
    โ€ข ANDROID_HOME = /home/gj/Android/Sdk
    โ€ข Java binary at: /opt/android-studio-4.0/android-studio/jre/bin/java
    โ€ข Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    โ€ข All Android licenses accepted.

[โœ“] Chrome - develop for the web
    โ€ข CHROME_EXECUTABLE = /usr/bin/google-chrome

[โœ“] Linux toolchain - develop for Linux desktop
    โ€ข clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
    โ€ข cmake version 3.10.2
    โ€ข ninja version 1.8.2
    โ€ข pkg-config version 0.29.1

[โœ“] Android Studio (version 4.0)
    โ€ข Android Studio at /opt/android-studio-4.0/android-studio
    โ€ข Flutter plugin version 51.0.1
    โ€ข Dart plugin version 193.7547
    โ€ข Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[โœ“] Android Studio
    โ€ข Android Studio at /opt/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
      1.8.0_242-release-1644-b3-6222593)

[โœ“] Android Studio
    โ€ข Android Studio at /home/gj/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.69.2)
    โ€ข VS Code at /usr/share/code
    โ€ข Flutter extension version 3.44.0

[โœ“] Connected device (2 available)
    โ€ข Linux (desktop) โ€ข linux  โ€ข linux-x64      โ€ข Ubuntu 20.04.4 LTS
      5.15.0-41-generic
    โ€ข Chrome (web)    โ€ข chrome โ€ข web-javascript โ€ข Google Chrome
      103.0.5060.134

[โœ“] HTTP Host Availability
    โ€ข All required HTTP hosts are available

โ€ข No issues found!

Thanks for reading! Any help would be greatly appreciated!

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.