100% Shared Code Android/iOS Login Example - JSON API

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:

<key>NSFaceIDUsageDescription</key>
<string>Why is my app authenticating using face id?</string>

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:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.example.app">
  <uses-permission android:name="android.permission.USE_FINGERPRINT"/>
<manifest>

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 simple animated login UI with teddy

Animated Login UI with Teddy ?? Used Packages ✨ flare_flutter How to run First clone the repo: git clone https://github.com/KauaLimaMartins/Teddy-Anim

KauãDev 42 Nov 19, 2022
A Flutter wrapper for AppAuth iOS and Android SDKs

flutter_appauth A Flutter plugin that provides a wrapper for native AppAuth SDKs (https://appauth.io) used authenticating and authorizing users. The r

Michael Bui 230 Dec 21, 2022
This project is an example of Firebase authentication in a flutter

This project is an example of Firebase authentication in a flutter. This project shows how to implement a full authentication flow in Flutter, using sign Up with email and password, sign in with email and password, and reset password.

Nittin 4 Mar 11, 2022
An example of JWT authentication with flutter.

flutter-jwt-auth-template An example of JWT authentication with flutter. Getting Started Clone this repository, and inside its folder, run: flutter pu

Enzo Di Tizio 23 Jan 4, 2023
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

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.

Rody Davis 672 Jan 6, 2023
Authentication API client with Flutter (Login, Register, Google Login, Facebook Login, Apple Login)

Flutter Auth App (Login, Register, Google Login, Facebook Login, Apple Login) To use this client, get the server up and running. Try it out now! App S

Denzel Giraldo 50 Jan 4, 2023
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
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-Shared-Preference - The goal is to learn how to use the shared preferences plugin to save important pieces of information to your device.

Recipe Finder The goal is to learn how to use the shared preferences plugin to save important pieces of information to your device. Final App UI Resou

Ashirbad Swain 1 Jan 1, 2022
Shared preferences typed - A type-safe wrapper around shared preferences, inspired by ts-localstorage

Typed Shared Preferences A type-safe wrapper around shared_preferences, inspired

Philipp Bauer 0 Jan 31, 2022
Note Shared Preferences - Note App Shared Preferences, Using Flutter

NOTE APP SHARED PREFERENCES LOCALIZATION Watch the gif below (lasts 00:08:22)

Tukhtamurodov Sardorbek 1 Jul 8, 2022
The Medito app is a 100% free meditation app built with flutter. The app is available on Android and iOS.

Medito App Meditation can positively transform people's lives. We believe no one should have to pay for it. We are the Medito Foundation, and we've bu

Medito Foundation 438 Dec 26, 2022
Flutter Advanced: Background Fetch | Run code in the background Android & iOS | Run code in the background Android & iOS

flutterbackground A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you starte

Pawan Kumar 40 Dec 16, 2022
This is a dart library covering nearly 100% of the latest Planning Center public API.

Planning Center API for Dart Planning Center is an online platform for church management. It provides multiple apps for things like check-ins, service

null 1 Oct 6, 2022
Shared Mobile and Web Firebase Login

fb_auth A Shared Firebase Auth Plugin for Mobile, Web and Desktop. Included AuthBloc for minimal setup! Single dynamic import and compile time ready f

Rody Davis 46 Dec 29, 2021
The Mashmart mobile app is designed as an example of how to retrieve data from the JSON API

Mashmart Mobile App (Demo Version) ✨ About The Mashmart mobile app is designed a

Dileepa Bandara 3 Nov 17, 2022
A flutter plugin about qr code or bar code scan , it can scan from file、url、memory and camera qr code or bar code .Welcome to feedback your issue.

r_scan A flutter plugin about qr code or bar code scan , it can scan from file、url、memory and camera qr code or bar code .Welcome to feedback your iss

PengHui Li 112 Nov 11, 2022
Provides null-safety implementation to simplify JSON data handling by adding extension method to JSON object

Lazy JSON Provides null-safety implementation to simplify JSON data handling by adding extension method to JSON object and JSON array. Getting started

Kinnara Digital Studio 0 Oct 27, 2021
Flutter package: Json Table Widget to create table from json array

Json Table Widget ?? Proudly Sponsored by FieldAssist Request a Demo This Flutter package provides a Json Table Widget for directly showing table from

Ayush P Gupta 193 Jan 7, 2023
State Persistence - Persist state across app launches. By default this library store state as a local JSON file called `data.json` in the applications data directory. Maintainer: @slightfoot

State Persistence Persist state across app launches. By default this library store state as a local JSON file called data.json in the applications dat

Flutter Community 70 Sep 28, 2022