This example uses a ScrollView, JSON Rest API, Navigation, Alert Pop Up, Progress Indicator, Globals, Images in a shared asset folder, and 100% Shared Code

Overview

Flutter Login Example

This example uses a ScrollView, JSON Rest API, Navigation, Alert Pop Up, Progress Indicator, Globals, Images in a shared asset folder, and 100% Shared Code. Now with the ability to login with FaceID, TouchID, and Fingerprint Reader on Android.

Online Demo: https://rodydavis.github.io/flutter_login/

New Features

  • Auto Login
  • Enhanced Security with Bio
  • Menu and Logout
  • Dark Mode and True Black
  • Settings Page
  • Auth Service
  • What's New Page
  • Remember Me Toggle
  • Custom Theme
  • Scoped Model
  • Automatic Json using json_serializable

Getting Started

Clone or Fork Project to get started.

Prerequisites

Flutter SDK, Android Studio or Other Compatible IDE.

iOS Integration

Note that this plugin works with both TouchID and FaceID. However, to use the latter, you need to also add:


   
    NSFaceIDUsageDescription
   

   
    Why is my app authenticating using face id?
   

to your Info.plist file. Failure to do so results in a dialog that tells the user your app has not been updated to use TouchID.

Android Integration

Update your project's AndroidManifest.xml file to include the USE_FINGERPRINT permissions:

">

    
  
     

     

     
    

Sticky Auth

You can set the stickyAuth option on the plugin to true so that plugin does not return failure if the app is put to background by the system. This might happen if the user receives a phone call before they get a chance to authenticate. With stickyAuth set to false, this would result in plugin returning failure result to the Dart app. If set to true, the plugin will retry authenticating when the app resumes.

screenshots

 

Settings Page and Menu (Including Dark Mode)

Built With

  • Flutter - Crossplatform App Development Framework

Contributing

Please submit a pull request if you want to help the project grow. The goal is to be able to fork the project and have a login module for your app complete so that a new project can be started quickly and customized to the user's needs.

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

Comments
  • Project won't build with dev 0.6.0

    Project won't build with dev 0.6.0

    Not sure it built before either for that matter :) But I just forked this and tried to build and I get:

    • Error running Gradle: Exit code 1 from: /Users/sjm/play/flutter_login/android/gradlew app:properties:

    FAILURE: Build failed with an exception.

    • Where: Build file '/Users/sjm/play/flutter_login/android/app/build.gradle' line: 16

    • What went wrong: A problem occurred evaluating project ':app'.

    versionCode not found. Define flutter.versionCode in the local.properties file.

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

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

    BUILD FAILED in 0s

    Please review your Gradle project setup in the android/ folder.

    opened by sjmcdowall 10
  • I am getting Kotlin Gradle plugin version error

    I am getting Kotlin Gradle plugin version error

    • Error running Gradle: ProcessException: Process "/Users/niyazitoros/IdeaProjects/capital_face/android/gradlew" exited abnormally:

    FAILURE: Build failed with an exception.

    • What went wrong: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.2.51 and higher. Project 'get_version' is using version 1.1.51.

    • 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

    BUİLD FAILED in 2s Command: /Users/niyazitoros/IdeaProjects/capital_face/android/gradlew app:properties

    Finished with error: Please review your Gradle project setup in the android/ folder.

    opened by NTMS2017 8
  • Unhandled Exception: Failed assertion: boolean expression must not be null

    Unhandled Exception: Failed assertion: boolean expression must not be null

    @AppleEducate Great Example.

    I am trying to run your project locally, however, I notice this exception is thrown. Any idea why?

    1.)

    Xcode build done. 15.1s flutter: no-action flutter: Error Loading App State => FileSystemException: Cannot open file, path = '/Users/Developer/CoreSimulator/Devices/D0B4986D-7605-4907 -B75E-C1E307D46C72/data/Containers/Data/Application/C5505F86-1BBD-4538-B827-49D5071CF8DA/Documents/custom_theme.json' (OS Error: No such file or directory, errno = 2) Syncing files to device iPhone XR... 1,967ms

    🔥 To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R". An Observatory debugger and profiler on iPhone XR is available at: http://127.0.0.1:57140/ For a more detailed help message, press "h". To detach, press "d"; to quit, press "q". [VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: Failed assertion: boolean expression must not be null #0 LoginPageState.build.. (package:flutter_login/ui/signin/signin.dart:186:37) #1 _rootRunUnary (dart:async/zone.dart:1132:38) #2 _CustomZone.runUnary (dart:async/zone.dart:1029:19) #3 _FutureListener.handleValue (dart:async/future_impl.dart:126:18) #4 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45) #5 Future._propagateToListeners (dart:async/future_impl.dart:668:32) #6 Future._completeWithValue (dart:async/future_impl.dart:483:5) #7 Future._asyncComplete. (dart:async/future_impl.dart:513:7) #8 _rootRun (dart:async/zone.dart:1124:13) #9 _CustomZone.run (dart:async/zone.dart:1021:19) #10 _CustomZone.runGuarded (dart:async/zone.dart:923:7) #11 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:963:23) #12 _microtaskLoo<…>

    opened by ArivuLabs 6
  • Compiler failed

    Compiler failed

    Compiler message:
    file:///home/antonio/flutter-sdk/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sticky_header-0.3.4/lib/src/widgets/sticky_header_layout_builder.dart:147:16: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
     - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///home/antonio/flutter-sdk/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
          context: context);
                   ^
    Compiler failed on /home/antonio/workspace-flutter/repo-gcloud/flutter_login/lib/main.dart
    
    FAILURE: Build failed with an exception.
    
    * Where:
    Script '/home/antonio/flutter-sdk/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 665
    
    * What went wrong:
    Execution failed for task ':app:compileflutterBuildDebugArm'.
    > Process 'command '/home/antonio/flutter-sdk/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 21s
    Finished with error: Gradle task assembleDebug failed with exit code 1
    
    
    opened by antoniosap 5
  • Login examples

    Login examples

    Hi,

    Are there any examples for the app login part as in https://github.com/AppleEducate/flutter_login/blob/master/lib/data/models/auth.dart ? I'm trying to log in to custom token based API thanks

    opened by deedos 4
  • System can not find key.properties

    System can not find key.properties

    Hello, thank you for your work.

    I tried to build this project, but I face this problem with key.properties:

    * Error running Gradle:
    ProcessException: Process ".\flutter_login-master\android\gradlew.bat" exited abnormally:
    
    > Configure project :app
    
    Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
    
    FAILURE: Build failed with an exception.
    
    * Where:
    Build file '.\flutter_login-master\android\app\build.gradle' line: 31
    
    * What went wrong:
    A problem occurred evaluating project ':app'.
    > .\flutter_login-master\android\key.properties (Systém nemůže nalézt uvedený soubor)
    
    * 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 1s
      Command: .\flutter_login-master\android\gradlew.bat app:properties
    
    Finished with error: Please review your Gradle project setup in the android/ folder.
    

    \flutter_login-master>flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel beta, v0.11.3, on Microsoft Windows [Version 10.0.14393], locale cs-CZ) [√] Android toolchain - develop for Android devices (Android SDK 28.0.3) [√] Android Studio (version 3.2) [√] VS Code, 64-bit edition (version 1.29.1) [√] Connected device (1 available) • No issues found!

    Could you help me, please?

    Thank you in advance. Vojtech Pohl

    opened by Vojtas87 3
  • Server side

    Server side

    This is really awesome security package. Could you publish the server side code it expects ?

    My intention is to integrate this with golang server and use grpc for networking. Would be happy to publish it.

    opened by ghost 3
  • How to modify UI when using local auth plugin in flutter ?

    How to modify UI when using local auth plugin in flutter ?

    Hello,

    I wanted to check if there is a way to modify the UI that appears for the local authentications. Say for example, below is how the screen would look when the finger print auth appears in the flutter app.

    image

    Below is an example of how the same would look like in other native apps like Walnut, for example.

    image

    Is there a way to dig in to the native layer and easily modify the UI to at least make it a bit better ?

    opened by 10xDSUserOne 2
  • best way to make this

    best way to make this "my own"?

    this might be useful in the Readme too

    I will create a PR for this if needed once the informations are collected.

    my current observations are, that search and replace "flutter_login" -> "your_project" works in a way.

    I'm not sure though if it's everything that is needed because of two things:

    1. if you git clone again flutter_login and build the app, it gets overwritten and it feels like it shares some data with the renamed project
    2. if you create a flutter project from scratch and just copy lib and pubspec.yaml over, it print build errors for me from cocoapods which are rather cryptic...

    thx in advance

    opened by elmcrest 2
  • Future<String> getData(Map params) / token questions

    Future getData(Map params) / token questions

    https://github.com/AppleEducate/flutter_login/blob/5a04073845988613cf7e576362966512bec2a6d2/lib/globals.dart#L82

    1. can you show how you'd use the params that this method takes in?
    2. when would its response ever contain 'Invalid Token' ? i noticed Future checkToken() calls it. https://github.com/AppleEducate/flutter_login/blob/5a04073845988613cf7e576362966512bec2a6d2/lib/signin/auth_service.dart#L97
    3. i don't see the token getting checked. could you give a sample or point me to where it is?
    4. how is the mapData expected to be used? i couldn't see what the expected usage from the assignment alone: https://github.com/AppleEducate/flutter_login/blob/5a04073845988613cf7e576362966512bec2a6d2/lib/signin/auth_service.dart#L26
    5. how is the code below this comment involved in getting a token? https://github.com/AppleEducate/flutter_login/blob/5a04073845988613cf7e576362966512bec2a6d2/lib/signin/auth_service.dart#L24 from looking at the uuid package, i guess the only part of this code that's involved in getting a token is: var uuid = new Uuid(); String ..., _token; _token = uuid.v4().toString(); is that right?
    6. when would validToken ever be false? it seems there's nothing that would prevent uuid from creating the token, as it's doing? https://github.com/AppleEducate/flutter_login/blob/5a04073845988613cf7e576362966512bec2a6d2/lib/signin/auth_service.dart#L55

    thank you!

    opened by matthewkooshad 2
  • Error thrown while return ScopedModel in main.dart file

    Error thrown while return ScopedModel in main.dart file

    @override Widget build(BuildContext context) { return ScopedModel( model: _model, child: new ScopedModelDescendant( builder: (context, child, theme) => ScopedModel( model: _auth, child: MaterialApp( theme: theme.theme, home: new ScopedModelDescendant( builder: (context, child, model) { if (model?.user != null) return Home(); return LoginPage(); }), routes: <String, WidgetBuilder>{ "/login": (BuildContext context) => LoginPage(), "/menu": (BuildContext context) => Home(), "/home": (BuildContext context) => Home(), "/settings": (BuildContext context) => SettingsPage(), "/create": (BuildContext context) => CreateAccount(), }, ), ), )); }

    'ThemeModel' doesn't extend 'Model'. Try using a type that is or is a subclass of 'Model'.dart(type_argument_not_matching_bounds)

    opened by willGreg 1
  • The plugins `get_version, local_auth` use a deprecated version of the Android embedding.

    The plugins `get_version, local_auth` use a deprecated version of the Android embedding.

    I guess this is because of the new flutter updates. How do I fix it?

    The pluginsget_version, local_auth` use a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs. If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration. Launching lib\main.dart on sdk gphone x86 64 arm64 in debug mode... ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/builder.dart:326:49: Error: The getter 'children' isn't defined for the class 'InlineSpan'.

    • 'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('../../../Documents/flutter/packages/flutter/lib/src/painting/inline_span.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'children'. List children = previous.text.children != null

                                               ^^^^^^^^
      

    ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/builder.dart:327:41: Error: The getter 'children' isn't defined for the class 'InlineSpan'.

    • 'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('../../../Documents/flutter/packages/flutter/lib/src/painting/inline_span.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'children'. ? new List.from(previous.text.children)

                                       ^^^^^^^^
      

    ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:51:30: Error: The getter 'body1' isn't defined for the class 'TextTheme'.

    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'. assert(theme?.textTheme?.body1?.fontSize != null); ^^^^^

    ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:54:26: Error: The getter 'body1' isn't defined for the class 'TextTheme'.

    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'. p: theme.textTheme.body1, ^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:58:35: Error: The getter 'body1' isn't defined for the class 'TextTheme'.

    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'. fontSize: theme.textTheme.body1.fontSize * 0.85 ^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:60:27: Error: The getter 'headline' isn't defined for the class 'TextTheme'.

    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline'. h1: theme.textTheme.headline, ^^^^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:61:27: Error: The getter 'title' isn't defined for the class 'TextTheme'.

    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'title'. h2: theme.textTheme.title, ^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:62:27: Error: The getter 'subhead' isn't defined for the class 'TextTheme'.

    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'subhead'. h3: theme.textTheme.subhead, ^^^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:63:27: Error: The getter 'body2' isn't defined for the class 'TextTheme'.

    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'body2'. h4: theme.textTheme.body2,

                         ^^^^^
      

    ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:64:27: Error: The getter 'body2' isn't defined for the class 'TextTheme'.

    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'body2'. h5: theme.textTheme.body2, ^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:65:27: Error: The getter 'body2' isn't defined for the class 'TextTheme'.
    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'body2'. h6: theme.textTheme.body2, ^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:68:35: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').

    Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'. blockquote: theme.textTheme.body1, ^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:69:28: Error: The getter 'body1' isn't defined for the class 'TextTheme'.

    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'. img: theme.textTheme.body1, ^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:97:26: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').

    Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'. p: theme.textTheme.body1, ^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:101:35: Error: The getter 'body1' isn't defined for the class 'TextTheme'.

    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'. fontSize: theme.textTheme.body1.fontSize * 0.85

                                 ^^^^^
      

    ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:103:27: Error: The getter 'display3' isn't defined for the class 'TextTheme'.

    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'display3'. h1: theme.textTheme.display3,

                         ^^^^^^^^
      

    ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:104:27: Error: The getter 'display2' isn't defined for the class 'TextTheme'.

    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').

    Try correcting the name to the name of an existing getter, or defining a getter or field named 'display2'. h2: theme.textTheme.display2, ^^^^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:105:27: Error: The getter 'display1' isn't defined for the class 'TextTheme'.

    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'display1'. h3: theme.textTheme.display1,

                         ^^^^^^^^
      

    ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:106:27: Error: The getter 'headline' isn't defined for the class 'TextTheme'.

    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline'. h4: theme.textTheme.headline, ^^^^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:107:27: Error: The getter 'title' isn't defined for the class 'TextTheme'.
    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'title'. h5: theme.textTheme.title, ^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:108:27: Error: The getter 'subhead' isn't defined for the class 'TextTheme'.
    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'subhead'. h6: theme.textTheme.subhead, ^^^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:111:35: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'. blockquote: theme.textTheme.body1, ^^^^^ ../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:112:28: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
    • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'. img: theme.textTheme.body1, ^^^^^

    FAILURE: Build failed with an exception.

    • Where: Script 'C:\Users\user\Documents\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1005

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

    Process 'command 'C:\Users\user\Documents\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 51s Exception: Gradle task assembleDebug failed with exit code 1 Exited (sigterm)

    `

    opened by Loverofart 1
  • flutter pub get - Failed - Invalid argument(s): Minimum version (

    flutter pub get - Failed - Invalid argument(s): Minimum version ("1.0.0") must be less than maximum ("1.0.0-0")

    flutter pub get

    Invalid argument(s): Minimum version ("1.0.0") must be less than maximum ("1.0.0-0"). package:pub_semver/src/version_range.dart 67:7 new VersionRange package:pub/src/solver/reformat_ranges.dart 56:27 _reformatTerm package:pub/src/solver/reformat_ranges.dart 34:26 reformatRanges. dart:_internal ListIterable.toList package:pub/src/solver/reformat_ranges.dart 35:12 reformatRanges package:pub/src/solver/reformat_ranges.dart 134:13 _reformatCause package:pub/src/solver/reformat_ranges.dart 36:7 reformatRanges package:pub/src/solver/reformat_ranges.dart 134:13 _reformatCause package:pub/src/solver/reformat_ranges.dart 36:7 reformatRanges package:pub/src/solver/reformat_ranges.dart 133:25 _reformatCause package:pub/src/solver/reformat_ranges.dart 36:7 reformatRanges package:pub/src/solver/reformat_ranges.dart 133:25 _reformatCause package:pub/src/solver/reformat_ranges.dart 36:7 reformatRanges package:pub/src/solver/reformat_ranges.dart 133:25 _reformatCause package:pub/src/solver/reformat_ranges.dart 36:7 reformatRanges package:pub/src/solver/version_solver.dart 312:24 VersionSolver._resolveConflict package:pub/src/solver/version_solver.dart 133:27 VersionSolver._propagate package:pub/src/solver/version_solver.dart 97:11 VersionSolver.solve. ===== asynchronous gap =========================== package:pub/src/source/hosted.dart 504:14 BoundHostedSource.withPrefetching. ===== asynchronous gap =========================== package:pub/src/rate_limited_scheduler.dart 106:14 RateLimitedScheduler.withPrescheduling ===== asynchronous gap =========================== package:pub/src/source/hosted.dart 503:12 BoundHostedSource.withPrefetching ===== asynchronous gap =========================== package:pub/src/solver/version_solver.dart 94:14 VersionSolver.solve This is an unexpected error. Please run

    pub --trace pub get --no-precompile
    

    and include the logs in an issue on https://github.com/dart-lang/pub/issues/new Running "flutter pub get" in flutter_login... pub get failed (1; and include the logs in an issue on https://github.com/dart-lang/pub/issues/new)

    opened by bo-feng-it 1
  • FAILURE: Build failed with an exception.

    FAILURE: Build failed with an exception.

    hi, i am new on flutter. i try clone your project but cant run in my emulator and phone.

    this the message: FAILURE: Build failed with an exception.

    • What went wrong: Execution failed for task ':local_auth:parseDebugLibraryResources'.

    Could not resolve all files for configuration ':local_auth:androidApis'. Failed to transform file 'android.jar' to match attributes {artifactType=android-platform-attr, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime} > Execution failed for PlatformAttrTransform: C:\Users\rahmat.nugroho\AppData\Local\Android\sdk\platforms\android-29\android.jar. > C:\Users\rahmat.nugroho\AppData\Local\Android\sdk\platforms\android-29\android.jar (The system cannot find the file specified)

    • 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 24s Exception: Gradle task assembleDebug failed with exit code 1

    opened by astrajingga99 0
  • DiagnosticsNode

    DiagnosticsNode

    Compiler message: /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sticky_header-0.3.4/lib/src/widgets/sticky_header_layout_builder.dart:147:16: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.

    • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart'). Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'. context: context); ^ Compiler failed on C:\xampp\htdocs\kalyan\flutter_login\lib\main.dart
    opened by Kalyanb447-github 0
Releases(1.0.0)
Owner
Rody Davis
Developer Advocate for @material-components at @Google
Rody Davis
A Flutter widget for Scrollview, pop when overscroll

overscroll_pop A Flutter widget for Scrollview, pop when overscroll like Instagram, Pinterest, ... Getting Started Include the package to your project

null 22 Dec 21, 2022
Smooth-Page-Indicator-Example-Flutter - A simple example about smooth page indicator in Flutter

Smooth Page Indicator Example - Flutter Screenshots ⚠️ Essential Packages smooth

AmirHossein Bayat 6 Dec 7, 2022
A simple modal progress HUD (heads-up display, or progress indicator) for flutter

modal_progress_hud A simple widget wrapper to enable modal progress HUD (a modal progress indicator, HUD = Heads Up Display) Inspired by this article.

Maurice McCabe 157 Nov 22, 2022
A new flutter package project which contains lots of beautiful alert dialog that will help you lot to create beautiful awesome alert box very quickly and easily.

A new flutter package project which contains lots of beautiful alert dialog that will help you lot to create beautiful awesome alert box very quickly and easily.

Karan Soni 8 Jan 8, 2022
A customizable toggle switch widget to add asset background images to the toggle switch.

A customizable toggle switch widget to add asset background images to the toggle switch. Features Use this package to give fancy background images to

null 3 Jul 26, 2022
A Flutter mobile application built completely using DhiWise and Supabase without coding single line of code. With 100% system generated code

Flutter Expension Getting Started with Flutter ?? Generated with ❤️ from Dhiwise A Flutter mobile application built completely using DhiWise and Supab

DhiWise 11 Oct 23, 2022
Flutter ui boilerplate is easiest way to create new flutter project with clean code and well organized file folder.

Flutter UI Boilerplate "Sharing for fun" Flutter ui boilerplate is easiest way to create new flutter project with clean code and well organized file f

Dimas Ibnu Malik 122 Dec 1, 2022
Asset manager helps you auto-generate the assets code and add it to your pubspec.yaml .

Asset Manager Asset manager helps you auto-generate the assets code and add it to your pubspec.yaml . Quick start dart pub global activate asset_manag

Rutvik Tak 9 Nov 1, 2022
Spider - A small dart library to generate Assets dart code from assets folder.

Spider A small dart library to generate Assets dart code from assets folder. It generates dart class with static const variables in it which can be us

Birju Vachhani 159 Nov 8, 2022
Iosish indicator - 🍎 Create awesome and simple iOS style floating indicator which can be found when silent/sleep mode switched on Flutter.

Iosish indicator - ?? Create awesome and simple iOS style floating indicator which can be found when silent/sleep mode switched on Flutter.

Kim Seung Hwan 2 Apr 1, 2022
A simple button that gives you the possibility to transform into a circular one and shows a progress indicator

Progress Button A simple button that gives you the possibility to transform into

Daniel B Schneider 0 Dec 22, 2021
Flutter component Gradient Progress Indicator

Gradient Progress Indicator Introduction This package shows a circular progress indicator with gradient colors, and it is possible insert texts inside

Otoniel Moreira Duarte 2 Dec 5, 2022
100+ Professional UI implementations with Code in Flutter. Available in Android, iOS, Linux and Web

Flutter UI Challenges My effort on replicating various apps UI on flutter. View on Web Building and running the code [ Updated ] Thank you all for you

Damodar Lohani 4k Dec 28, 2022
Google Vision images REST API Client

Native Dart package that integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.

C Davis 6 Jan 7, 2023
Flutter package to diplay progress through a milestone progress widget

milestone_progress Flutter package for IOS and Android to display progress through milestone progress widget. Screenshots ## Usage [Example]https://gi

Harpreet Singh 16 Aug 4, 2020
Wave progress - A custom wave progress widget

wave_progress_widget A customable wave progress widget Preview How to use Add this to your package's pubspec.yaml file: dependencies: wave_progress_

idan ben shimon 41 Jul 18, 2022
Bhagavad Gita app using flutter & Bhagavad-Gita-API is A lightweight Node.js based Bhagavad Gita API [An open source rest api on indian Vedic Scripture Shrimad Bhagavad Gita].

Gita Bhagavad Gita flutter app. Download App - Playstore Web Application About Bhagavad Gita app using flutter & Bhagavad-Gita-API is A lightweight No

Ravi Kovind 7 Apr 5, 2022
Peek & Pop implementation for Flutter based on the iOS functionality of the same name.

peek_and_pop Peek & Pop implementation for Flutter based on the iOS functionality of the same name. Finally, the v1.0.0 release! More fluent, more opt

AliYigitBireroglu 227 Dec 17, 2022
Asset File Generator For Flutter

A simple command line tool that is used to generate the file containing a class, where all the assets present in the given directory will be mapped to a unique variable name.

null 5 Feb 16, 2022