Code Monkey home page Code Monkey logo

mfp-app's Introduction

mfp-app's People

Contributors

chaluckabs avatar

Stargazers

 avatar Tavat Raknumtiank avatar Oralita avatar

Watchers

Natthaphong Ruengpanyawut avatar

mfp-app's Issues

Deprecated RaisedButton causing error in new Flutter 3.xx

Description:

The RaisedButton widget used in the codebase is causing an error in Flutter version 3.7.12. This is because the RaisedButton widget has been deprecated and replaced by the ElevatedButton widget in Flutter 2.0.

Steps to Reproduce:

To reproduce the issue:

  1. Use Flutter version 3.7.12.
  2. Run the code that contains the RaisedButton widget.

Expected Behavior:

The code should compile and run without any errors, using the RaisedButton widget.

Actual Behavior:

The code throws an error indicating that the RaisedButton widget is not defined for the type _LoginState.

Suggested Solution:

To fix the issue, update the code to use the ElevatedButton widget instead of RaisedButton. The ElevatedButton widget is the recommended replacement for RaisedButton in Flutter 2.0 and later versions.

Here's an example of how to update the code:

Expanded(
  child: ElevatedButton(
    style: ElevatedButton.styleFrom(
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(30.0),
      ),
      // Add other desired properties and styles here
    ),
    onPressed: () {
      // Add the button's onPressed event handler here
    },
    child: Text('Button Text'),
  ),
),

Please update the codebase accordingly and retest to ensure that the issue is resolved.

Example error code

image


image

Additional Information:

  • Flutter version: 3.7.12

Deprecated Android Embedding Support

The flutter_facebook_login plugin currently relies on a deprecated version of the Android embedding. As per the deprecation notice from the Flutter team, the deprecated version will be removed in future releases of Flutter. Therefore, it is important to update the plugin to support the Android V2 embedding to avoid potential runtime failures or build issues.

Description:

The flutter_facebook_login plugin currently relies on a deprecated version of the Android embedding. As per the deprecation notice from the Flutter team, the deprecated version will be removed in future releases of Flutter. Therefore, it is important to update the plugin to support the Android V2 embedding to avoid potential runtime failures or build issues.

Steps to Reproduce:

  1. Create a new Flutter project.
  2. Add the flutter_facebook_login plugin to the project dependencies.
  3. Build and run the project on an Android device/emulator.

Expected Behavior:

The flutter_facebook_login plugin should support the Android V2 embedding to ensure compatibility with future releases of Flutter.

Actual Behavior:

The plugin currently uses a deprecated version of the Android embedding, which may lead to unexpected runtime failures or build issues. It is recommended to update the plugin to support the Android V2 embedding.

Suggested Solution:

Please consider updating the flutter_facebook_login plugin to support the Android V2 embedding. This will ensure that the plugin remains compatible with the latest versions of Flutter and avoids any deprecation-related issues.

Additional Information:

  • Flutter version: 3.7.12
  • flutter_facebook_login plugin version: 3.0.0

Image

image


IMG_7BFA13229D7F-1

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.