Coder Social home page Coder Social logo

What is the purpose of the generated_plugin_registrant.dart file in the example/lib path and how it was generated about fluent_ui HOT 3 CLOSED

ZhongGuanbin avatar ZhongGuanbin commented on August 16, 2024
What is the purpose of the generated_plugin_registrant.dart file in the example/lib path and how it was generated

from fluent_ui.

Comments (3)

WinXaito avatar WinXaito commented on August 16, 2024 1

So, these files are effectively autogenerated by flutter. And they are in the example app (so not directly linked to fluent_ui library).

These files are generated by flutter at the compilation time.

We can see the same kind of file in the windows directory: https://github.com/bdlukaa/fluent_ui/blob/master/example/windows/flutter/generated_plugin_registrant.cc


However, I'm not sure why I included this in that PR, probably a mistake. These file are definitly not problematic, but we could also remove them and add them in the .gitignore file because they are generated by flutter at compilation.

from fluent_ui.

ZhongGuanbin avatar ZhongGuanbin commented on August 16, 2024

When I entered the Flutter build web command, a description of "generated_plugin-registration. dart found. deleted" appeared on the command line, and then the generated_plugin-registration. dart file in the example/lib path was deleted. So why is this? What actions have been completed in this process? Is the generated plugin register. dart file a necessary file for compiling web applications? The command line information when compiling web applications is as follows. Thank you very much for your help
image

from fluent_ui.

ZhongGuanbin avatar ZhongGuanbin commented on August 16, 2024

So, these files are effectively autogenerated by flutter. And they are in the example app (so not directly linked to fluent_ui library).

These files are generated by flutter at the compilation time.

We can see the same kind of file in the windows directory: https://github.com/bdlukaa/fluent_ui/blob/master/example/windows/flutter/generated_plugin_registrant.cc

However, I'm not sure why I included this in that PR, probably a mistake. These file are definitly not problematic, but we could also remove them and add them in the .gitignore file because they are generated by flutter at compilation.

Thank you very much for your reply. I raised this question because I couldn't find any references from it and couldn't reproduce this file. This may be a problem that occurred during the development of Flutter. If it does not affect its use, I will temporarily close this issue. Welcome everyone to find the answer to this phenomenon. Thank you again for your reply!

from fluent_ui.

Related Issues (20)

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.