CN111045675B - A Flutter-based page generation method, device, device and storage medium - Google Patents
A Flutter-based page generation method, device, device and storage medium Download PDFInfo
- Publication number
- CN111045675B CN111045675B CN201911329185.XA CN201911329185A CN111045675B CN 111045675 B CN111045675 B CN 111045675B CN 201911329185 A CN201911329185 A CN 201911329185A CN 111045675 B CN111045675 B CN 111045675B
- Authority
- CN
- China
- Prior art keywords
- flutter
- interface component
- components
- page
- component
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 239000000463 material Substances 0.000 claims description 11
- 238000010276 construction Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 4
- 238000011161 development Methods 0.000 abstract description 7
- 230000006870 function Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000009877 rendering Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000010422 painting Methods 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本发明实施例公开了一种基于Flutter的页面生成方法、装置、设备和存储介质。该基于Flutter的页面生成方法包括:按照预设分类方法构建Flutter界面组件库;根据所述预设分类方法对预先设计好的需求页面进行拆解后分类以得到第一界面组件;编写所述第一界面组件的配置参数文件;根据所述配置参数文件从所述Flutter界面组件库中调用对应的第二界面组件;根据所述第二界面组件生成第一页面。本发明实施例实现了高效率通过Flutter开发页面。
The embodiment of the present invention discloses a Flutter-based page generation method, device, device and storage medium. The Flutter-based page generation method includes: constructing a Flutter interface component library according to a preset classification method; disassembling and classifying a pre-designed demand page according to the preset classification method to obtain a first interface component; writing the first interface component A configuration parameter file of an interface component; calling a corresponding second interface component from the Flutter interface component library according to the configuration parameter file; generating a first page according to the second interface component. The embodiment of the present invention realizes high-efficiency development of pages through Flutter.
Description
技术领域technical field
本发明实施例涉及页面开发技术,尤其涉及一种基于Flutter的页面生成方法、装置、设备和存储介质。Embodiments of the present invention relate to page development technologies, and in particular, to a Flutter-based page generation method, device, device, and storage medium.
背景技术Background technique
Flutter是Google开源的新一代跨平台UI框架,是在2018年GMTC大会发布的,它具有自己的Skia渲染引擎,当我们利用Flutter技术写好界面后,Flutter会使用自己的Skia引擎渲染,移动端不负责绘制。“自带渲染引擎”这点,迎来了真正的跨平台。只要写一份代码,就可以构建出Android、IOS、Web应用,其体验能达到和原生应用一致。基于UI库的组件模式化开发能高效的帮助我们更新页面,同时减低了代码的复杂度,带来更好的可维护性。Flutter is a new generation of cross-platform UI framework open sourced by Google. It was released at the 2018 GMTC conference. It has its own Skia rendering engine. When we use Flutter technology to write the interface, Flutter will use its own Skia engine for rendering. Not responsible for drawing. The point of "self-contained rendering engine" has ushered in a true cross-platform. As long as you write a code, you can build Android, IOS, and Web applications, and its experience can be consistent with that of native applications. The modular development of components based on the UI library can efficiently help us update the page, while reducing the complexity of the code and bringing better maintainability.
但是,Flutter作为一款新的产品,其大部分功能还是不够完善的,例如Flutter没有一个具有标准性、组合性、重用性、可维护性的UI组件库,因此作为前端技术人员,利用Flutter新技术进行应用页面开发的效率还是不够高,且在前端技术人员对接具体业务时,工作量还是比较大的。However, as a new product, most of Flutter’s functions are still not perfect. For example, Flutter does not have a UI component library with standardization, composition, reusability, and maintainability. Therefore, as a front-end technician, use Flutter’s new The efficiency of application page development with technology is still not high enough, and when the front-end technicians connect with specific businesses, the workload is still relatively large.
发明内容Contents of the invention
本发明实施例提供一种基于Flutter的页面生成方法、装置、设备和存储介质,以实现高效率通过Flutter开发页面。Embodiments of the present invention provide a Flutter-based page generation method, device, device, and storage medium to achieve high-efficiency development of pages through Flutter.
为达此目的,本发明实施例提供了一种基于Flutter的页面生成方法,该方法包括:To achieve this purpose, an embodiment of the present invention provides a Flutter-based page generation method, the method comprising:
按照预设分类方法构建Flutter界面组件库;Construct the Flutter interface component library according to the preset classification method;
根据所述预设分类方法对预先设计好的需求页面进行拆解后分类以得到第一界面组件;Disassemble and classify the pre-designed demand pages according to the preset classification method to obtain the first interface component;
编写所述第一界面组件的配置参数文件;Writing a configuration parameter file of the first interface component;
根据所述配置参数文件从所述Flutter界面组件库中调用对应的第二界面组件;calling a corresponding second interface component from the Flutter interface component library according to the configuration parameter file;
根据所述第二界面组件生成第一页面。A first page is generated according to the second interface component.
进一步的,所述按照预设分类方法构建Flutter界面组件库:Further, the Flutter interface component library is constructed according to the preset classification method:
从Flutter框架的Framework层中调用第一组件数据;Call the first component data from the Framework layer of the Flutter framework;
按照预设分类方法对所述第一组件数据进行分类以构建出Flutter界面组件库。The first component data is classified according to a preset classification method to construct a Flutter interface component library.
进一步的,所述从Flutter框架的Framework层中调出第一组件数据包括:Further, calling out the first component data from the Framework layer of the Flutter framework includes:
从Flutter框架的Framework层中调用Material层、Cupertino层和Widgets层;Call the Material layer, Cupertino layer and Widgets layer from the Framework layer of the Flutter framework;
从所述Material层、Cupertino层和Widgets层中调用第一组件数据。Call the first component data from the Material layer, Cupertino layer and Widgets layer.
进一步的,所述按照预设的分类方法对所述第一组件数据进行分类以构建出Flutter界面组件库包括:Further, classifying the first component data according to a preset classification method to construct a Flutter interface component library includes:
将所述第一组件数据分为基础组件、视图组件和业务组件以使所述第一组件数据可配置;dividing the first component data into basic components, view components and business components to make the first component data configurable;
根据所述基础组件、视图组件和业务组件构建出Flutter界面组件库。A Flutter interface component library is constructed based on the basic components, view components and business components.
进一步的,所述基础组件包括颜色值组件、图标组件和按钮组件,所述视图组件包括消息提示组件、弹层组件、加载组件、轮播组件、滚动及下拉刷新组件,所述业务组件包括公共网络错误页组件。Further, the basic components include color value components, icon components and button components, the view components include message prompt components, pop-up layer components, loading components, carousel components, scrolling and pull-down refresh components, and the business components include public Web error page component.
进一步的,所述根据所述第二界面组件生成第一页面包括:Further, the generating the first page according to the second interface component includes:
根据所述第二界面组件生成第一页面代码;generating a first page code according to the second interface component;
根据所述第一页面代码生成第一页面。A first page is generated according to the first page code.
进一步的,所述根据所述第一页面代码代码生成第一页面之后包括:Further, after generating the first page according to the code code of the first page, it includes:
对所述第一页面进行逻辑编写以生成第二页面。Perform logic programming on the first page to generate a second page.
一方面,本发明实施例还提供了一种基于Flutter的页面生成装置,该装置包括:On the one hand, the embodiment of the present invention also provides a Flutter-based page generation device, the device comprising:
组件库构建模块,用于按照预设分类方法构建Flutter界面组件库;Component library building module, used to build the Flutter interface component library according to the preset classification method;
组件分类模块,用于根据所述预设分类方法对预先设计好的需求页面进行拆解后分类以得到第一界面组件;A component classification module, configured to disassemble and classify the pre-designed demand pages according to the preset classification method to obtain the first interface components;
文件编写模块,用于编写所述第一界面组件的配置参数文件;A file writing module, configured to write a configuration parameter file of the first interface component;
组件调用模块,用于根据所述配置参数文件从所述Flutter界面组件库中调用对应的第二界面组件;A component calling module, configured to call a corresponding second interface component from the Flutter interface component library according to the configuration parameter file;
页面生成模块,用于根据所述第二界面组件生成第一页面。A page generating module, configured to generate a first page according to the second interface component.
另一方面,本发明实施例还提供了一种基于Flutter的页面生成设备,该设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本发明任一实施例提供的方法。On the other hand, the embodiment of the present invention also provides a Flutter-based page generation device, the device includes: one or more processors; a storage device for storing one or more programs, when the one or more The program is executed by the one or more processors, so that the one or more processors implement the method provided by any embodiment of the present invention.
又一方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本发明任一实施例提供的方法。In yet another aspect, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method provided in any embodiment of the present invention is implemented.
本发明实施例通过按照预设分类方法构建Flutter界面组件库;根据所述预设分类方法对预先设计好的需求页面进行拆解后分类以得到第一界面组件;编写所述第一界面组件的配置参数文件;根据所述配置参数文件从所述Flutter界面组件库中调用对应的第二界面组件;根据所述第二界面组件生成第一页面,解决了利用Flutter新技术进行应用页面开发的效率还是不够高,且在前端技术人员对接具体业务时,工作量还是比较大的问题,实现了高效率通过Flutter开发页面的效果。The embodiment of the present invention constructs the Flutter interface component library according to the preset classification method; disassembles and classifies the pre-designed demand pages according to the preset classification method to obtain the first interface component; writes the first interface component Configure the parameter file; call the corresponding second interface component from the Flutter interface component library according to the configuration parameter file; generate the first page according to the second interface component, which solves the efficiency of using the Flutter new technology for application page development It is still not high enough, and when the front-end technicians connect with specific businesses, the workload is still relatively large, and the effect of developing pages through Flutter with high efficiency has been achieved.
附图说明Description of drawings
图1是本发明实施例一提供的基于Flutter的页面生成方法的流程示意图;FIG. 1 is a schematic flowchart of a Flutter-based page generation method provided by Embodiment 1 of the present invention;
图2是本发明实施例二提供的基于Flutter的页面生成方法的流程示意图;FIG. 2 is a schematic flowchart of a Flutter-based page generation method provided in
图3是本发明实施例三提供的基于Flutter的页面生成装置的结构示意图;FIG. 3 is a schematic structural diagram of a Flutter-based page generation device provided by Embodiment 3 of the present invention;
图4为本发明实施例四提供的基于Flutter的页面生成设备的结构示意图。FIG. 4 is a schematic structural diagram of a Flutter-based page generation device provided by Embodiment 4 of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are used to explain the present invention rather than limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时处理可以被终止,但是还可以具有未包括在附图中的附加步骤。处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processing, many of the steps may be performed in parallel, concurrently, or simultaneously. Additionally, the order of steps may be rearranged. A process may be terminated when its operations are complete, but may also have additional steps not included in the figure. A process may correspond to a method, function, procedure, subroutine, subroutine, or the like.
此外,术语“第一”、“第二”等可在本文中用于描述各种方向、动作、步骤或元件等,但这些方向、动作、步骤或元件不受这些术语限制。这些术语仅用于将第一个方向、动作、步骤或元件与另一个方向、动作、步骤或元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一模块称为第二模块,且类似地,可将第二模块称为第一模块。第一模块和第二模块两者都是模块,但其不是同一模块。术语“第一”、“第二”等不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个所述特征。在本发明实施例的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first", "second", etc. may be used herein to describe various directions, actions, steps or elements, etc., but these directions, actions, steps or elements are not limited by these terms. These terms are only used to distinguish a first direction, action, step or element from another direction, action, step or element. For example, a first module could be termed a second module, and, similarly, a second module could be termed a first module, without departing from the scope of the present application. Both the first module and the second module are modules, but they are not the same module. The terms "first", "second", etc. should not be understood as indicating or implying relative importance or implying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of said features. In the description of the embodiments of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
实施例一Embodiment one
如图1所示,本发明实施例一提供了一种基于Flutter的页面生成方法,该方法包括:As shown in Figure 1, Embodiment 1 of the present invention provides a Flutter-based page generation method, which includes:
S110、按照预设分类方法构建Flutter界面组件库。S110. Construct a Flutter interface component library according to a preset classification method.
本实施例中,首先需要构建一个Flutter界面组件库,预设分类方法可以是开发人员根据自己的需求和偏好定义的分类方法,开发人员可以调取Flutter自带的基础组件库的全部界面组件,然后按照预设分类方法对上述界面组件进行分类,从而构建出Flutter界面组件库。需要说明的是,Flutter界面组件库可以是预先构建好的,可反复使用。In this embodiment, it is first necessary to build a Flutter interface component library. The default classification method can be the classification method defined by the developer according to his own needs and preferences. The developer can call all the interface components of the basic component library that comes with Flutter. Then classify the above interface components according to the preset classification method, so as to build the Flutter interface component library. It should be noted that the Flutter interface component library can be pre-built and can be used repeatedly.
S120、根据所述预设分类方法对预先设计好的需求页面进行拆解后分类以得到第一界面组件。S120. Disassemble and classify the pre-designed demand pages according to the preset classification method to obtain the first interface component.
本实施例中,当需要生成应用的页面时,开发人员会设计好最后要生成的页面,即需求页面,需求页面为设计稿文件,不能直接应用在程序中,然后可以将需求页面进行拆解得到需求页面的多个界面组件,最后按照构建Flutter界面组件库的预设分类方法对上述多个界面组件进行分类,得到第一界面组件。In this embodiment, when the application page needs to be generated, the developer will design the final page to be generated, that is, the requirement page. The requirement page is a design draft file, which cannot be directly applied in the program, and then the requirement page can be disassembled Obtain multiple interface components on the required page, and finally classify the above multiple interface components according to the preset classification method for building the Flutter interface component library, and obtain the first interface component.
S130、编写所述第一界面组件的配置参数文件。S130. Write a configuration parameter file of the first interface component.
S140、根据所述配置参数文件从所述Flutter界面组件库中调用对应的第二界面组件。S140. Call the corresponding second interface component from the Flutter interface component library according to the configuration parameter file.
S150、根据所述第二界面组件生成第一页面。S150. Generate a first page according to the second interface component.
本实施例中,开发人员还需要对分类得到的第一界面组件编写配置参数文件,以使第一界面组件可以对应上开发人员自己定义的Flutter界面组件库,根据该配置参数文件可从Flutter界面组件库中调用与第一界面组件对应的第二界面组件。最后根据第二界面组件就可以生成第一页面了。In this embodiment, the developer also needs to write a configuration parameter file for the classified first interface component, so that the first interface component can correspond to the Flutter interface component library defined by the developer. According to the configuration parameter file, the Flutter interface can be The second interface component corresponding to the first interface component is called in the component library. Finally, the first page can be generated according to the second interface component.
本发明实施例通过按照预设分类方法构建Flutter界面组件库;根据所述预设分类方法对预先设计好的需求页面进行拆解后分类以得到第一界面组件;编写所述第一界面组件的配置参数文件;根据所述配置参数文件从所述Flutter界面组件库中调用对应的第二界面组件;根据所述第二界面组件生成第一页面,解决了利用Flutter新技术进行应用页面开发的效率还是不够高,且在前端技术人员对接具体业务时,工作量还是比较大的问题,实现了高效率通过Flutter开发页面的效果。The embodiment of the present invention constructs the Flutter interface component library according to the preset classification method; disassembles and classifies the pre-designed demand pages according to the preset classification method to obtain the first interface component; writes the first interface component Configure the parameter file; call the corresponding second interface component from the Flutter interface component library according to the configuration parameter file; generate the first page according to the second interface component, which solves the efficiency of using the Flutter new technology for application page development It is still not high enough, and when the front-end technicians connect with specific businesses, the workload is still relatively large, and the effect of developing pages through Flutter with high efficiency has been achieved.
实施例二Embodiment two
如图2所示,本发明实施例二提供了一种基于Flutter的页面生成方法,本发明实施例二是在本发明实施例一的基础上进一步的优化,该方法包括:As shown in Figure 2,
S210、从Flutter框架的Framework层中调用Material层、Cupertino层和Widgets层。S210. Call the Material layer, Cupertino layer and Widgets layer from the Framework layer of the Flutter framework.
S220、从所述Material层、Cupertino层和Widgets层中调用第一组件数据。S220. Call the first component data from the Material layer, Cupertino layer and Widgets layer.
S230、将所述第一组件数据分为基础组件、视图组件和业务组件以使所述第一组件数据可配置。S230. Divide the first component data into basic components, view components, and business components so that the first component data is configurable.
S240、根据所述基础组件、视图组件和业务组件构建出Flutter界面组件库。S240. Construct a Flutter interface component library according to the basic components, view components and business components.
本实施例中,构建Flutter界面组件库的时候,可以先从Flutter框架的Framework层中调用Material层、Cupertino层和Widgets层,可选的,还可以进一步调取Widgets层之下的Rendering层、Animation层、Painting层、Gestures层和Foundation层,并从上述层中调取各自的组件数据。调取出第一组件数据后,可选的,按照预设分类方法将所述第一组件数据分为基础组件、视图组件和业务组件,使得第一组件数据可配置。其中,基础组件可以包括颜色值组件、图标组件和按钮组件,视图组件可以包括消息提示组件、弹层组件、加载组件、轮播组件、滚动及下拉刷新组件,业务组件可以包括公共网络错误页组件。In this embodiment, when building the Flutter interface component library, you can first call the Material layer, Cupertino layer, and Widgets layer from the Framework layer of the Flutter framework. Optionally, you can further call the Rendering layer and Animation layer under the Widgets layer. Layer, Painting layer, Gestures layer and Foundation layer, and call their respective component data from the above layers. After the first component data is retrieved, optionally, the first component data is divided into basic components, view components and business components according to a preset classification method, so that the first component data can be configured. Among them, basic components can include color value components, icon components and button components, view components can include message prompt components, pop-up layer components, loading components, carousel components, scrolling and pull-down refresh components, and business components can include public network error page components .
S250、根据所述预设分类方法对预先设计好的需求页面进行拆解后分类以得到第一界面组件。S250. Disassemble and classify the predesigned demand pages according to the preset classification method to obtain the first interface component.
S260、编写所述第一界面组件的配置参数文件。S260. Write a configuration parameter file of the first interface component.
S270、根据所述配置参数文件从所述Flutter界面组件库中调用对应的第二界面组件。S270. Call the corresponding second interface component from the Flutter interface component library according to the configuration parameter file.
本发明实施例中步骤S250-步骤S270和本发明实施例一中的实现方法相同,本发明实施例在此不再赘述。Step S250 to step S270 in this embodiment of the present invention are the same as the implementation method in Embodiment 1 of the present invention, and will not be repeated here in this embodiment of the present invention.
S280、根据所述第二界面组件生成第一页面代码。S280. Generate a first page code according to the second interface component.
S290、根据所述第一页面代码生成第一页面。S290. Generate a first page according to the first page code.
S300、对所述第一页面进行逻辑编写以生成第二页面。S300. Perform logic programming on the first page to generate a second page.
本实施例中,最后根据从Flutter界面组件库中调用的第二界面组件得到对应的第一页面代码,根据第一页面代码生成第一页面,就得到了开发人员的需求页面,进一步的,还可以对第一页面进行逻辑编写,完善第一页面的功能,得到可以实际使用的第二页面。通过预先构建的Flutter界面组件库,开发人员只需要对需求页面进行拆解和分类并编写出对应的配置参数文件就可以得到可以实际使用的页面了。In this embodiment, finally, according to the second interface component called from the Flutter interface component library, the corresponding first page code is obtained, and the first page is generated according to the first page code, and the developer's demand page is obtained. Further, it is also It is possible to write the logic of the first page, improve the functions of the first page, and obtain the second page that can be actually used. Through the pre-built Flutter interface component library, developers only need to disassemble and classify the required pages and write the corresponding configuration parameter files to get the pages that can be actually used.
实施例三Embodiment Three
如图3所示,本发明实施例三提供了一种基于Flutter的页面生成装置100,本发明实施例三所提供的基于Flutter的页面生成装置100可执行本发明任意实施例所提供的基于Flutter的页面生成方法,具备执行方法相应的功能模块和有益效果。该基于Flutter的页面生成装置100包括组件库构建模块200、组件分类模块300、文件编写模块400、组件调用模块500和页面生成模块600。As shown in Figure 3, Embodiment 3 of the present invention provides a Flutter-based
具体的,组件库构建模块200用于按照预设分类方法构建Flutter界面组件库;组件分类模块300用于根据所述预设分类方法对预先设计好的需求页面进行拆解后分类以得到第一界面组件;文件编写模块400用于编写所述第一界面组件的配置参数文件;组件调用模块500用于根据所述配置参数文件从所述Flutter界面组件库中调用对应的第二界面组件;页面生成模块600用于根据所述第二界面组件生成第一页面。Specifically, the component
本实施例中,组件库构建模块200具体用于从Flutter框架的Framework层中调用第一组件数据;按照预设分类方法对所述第一组件数据进行分类以构建出Flutter界面组件库。组件库构建模块200具体还用于从Flutter框架的Framework层中调用Material层、Cupertino层和Widgets层;从所述Material层、Cupertino层和Widgets层中调用第一组件数据。组件库构建模块200具体还用于将所述第一组件数据分为基础组件、视图组件和业务组件以使所述第一组件数据可配置;根据所述基础组件、视图组件和业务组件构建出Flutter界面组件库。In this embodiment, the component
作为优选的,所述基础组件包括颜色值组件、图标组件和按钮组件,所述视图组件包括消息提示组件、弹层组件、加载组件、轮播组件、滚动及下拉刷新组件,所述业务组件包括公共网络错误页组件。Preferably, the basic components include color value components, icon components and button components, the view components include message prompt components, pop-up layer components, loading components, carousel components, scrolling and pull-down refresh components, and the business components include Public web error page component.
进一步的,页面生成模块600具体用于根据所述第二界面组件生成第一页面代码;根据所述第一页面代码生成第一页面。页面生成模块600还用于对所述第一页面进行逻辑编写以生成第二页面。Further, the
实施例四Embodiment Four
图4为本发明实施例四提供的一种基于Flutter的页面生成计算机设备的结构示意图。图4示出了适于用来实现本发明实施方式的示例性计算机设备12的框图。图4显示的计算机设备12仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 4 is a schematic structural diagram of a computer device for generating pages based on Flutter provided by Embodiment 4 of the present invention. Figure 4 shows a block diagram of an
如图4所示,计算机设备12以通用计算设备的形式表现。计算机设备12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,系统存储器28,连接不同系统组件(包括系统存储器28和处理单元16)的总线18。As shown in FIG. 4,
总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。
计算机设备12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被计算机设备12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。
系统存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)30和/或高速缓存存储器32。计算机设备12可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图4未显示,通常称为“硬盘驱动器”)。尽管图4中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。
具有一组(至少一个)程序模块42的程序/实用工具40,可以存储在例如存储器28中,这样的程序模块42包括——但不限于——操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块42通常执行本发明所描述的实施例中的功能和/或方法。A program/
计算机设备12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该计算机设备12交互的设备通信,和/或与使得该计算机设备12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口22进行。并且,计算机设备12还可以通过网络适配器20与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器20通过总线18与计算机设备12的其它模块通信。应当明白,尽管图中未示出,可以结合计算机设备12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The
处理单元16通过运行存储在系统存储器28中的程序,从而执行各种功能应用以及数据处理,例如实现本发明实施例所提供的方法:The
按照预设分类方法构建Flutter界面组件库;Construct the Flutter interface component library according to the preset classification method;
根据所述预设分类方法对预先设计好的需求页面进行拆解后分类以得到第一界面组件;Disassemble and classify the pre-designed demand pages according to the preset classification method to obtain the first interface component;
编写所述第一界面组件的配置参数文件;Writing a configuration parameter file of the first interface component;
根据所述配置参数文件从所述Flutter界面组件库中调用对应的第二界面组件;calling a corresponding second interface component from the Flutter interface component library according to the configuration parameter file;
根据所述第二界面组件生成第一页面。A first page is generated according to the second interface component.
实施例五Embodiment five
本发明实施例五还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请所有发明实施例提供的方法:Embodiment 5 of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the methods provided in all the invention embodiments of the present application are implemented:
按照预设分类方法构建Flutter界面组件库;Construct the Flutter interface component library according to the preset classification method;
根据所述预设分类方法对预先设计好的需求页面进行拆解后分类以得到第一界面组件;Disassemble and classify the pre-designed demand pages according to the preset classification method to obtain the first interface component;
编写所述第一界面组件的配置参数文件;Writing a configuration parameter file of the first interface component;
根据所述配置参数文件从所述Flutter界面组件库中调用对应的第二界面组件;calling a corresponding second interface component from the Flutter interface component library according to the configuration parameter file;
根据所述第二界面组件生成第一页面。A first page is generated according to the second interface component.
本发明实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium in the embodiments of the present invention may use any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer readable storage media include: electrical connections with one or more leads, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including - but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of the present invention may be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural Programming Language - such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (such as through an Internet Service Provider). Internet connection).
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, rearrangements and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911329185.XA CN111045675B (en) | 2019-12-20 | 2019-12-20 | A Flutter-based page generation method, device, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911329185.XA CN111045675B (en) | 2019-12-20 | 2019-12-20 | A Flutter-based page generation method, device, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111045675A CN111045675A (en) | 2020-04-21 |
CN111045675B true CN111045675B (en) | 2023-06-06 |
Family
ID=70238360
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911329185.XA Active CN111045675B (en) | 2019-12-20 | 2019-12-20 | A Flutter-based page generation method, device, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111045675B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112835579B (en) * | 2021-02-04 | 2024-07-19 | 北京百度网讯科技有限公司 | Method, device, electronic equipment and storage medium for determining interface code |
CN113407180B (en) * | 2021-05-28 | 2022-11-01 | 济南浪潮数据技术有限公司 | Configuration page generation method, system, equipment and medium |
CN113342447B (en) * | 2021-06-28 | 2024-04-02 | 平安国际融资租赁有限公司 | Page generation method, device, equipment and storage medium based on Flutter |
CN113821295A (en) * | 2021-10-11 | 2021-12-21 | 中国银行股份有限公司 | Mobile financial application development method and device based on component library |
CN114201252B (en) * | 2021-11-19 | 2025-01-17 | 北京三快在线科技有限公司 | Page component layout method and device, electronic equipment and readable storage medium |
CN114398091B (en) * | 2021-12-03 | 2024-02-23 | 贝壳找房(北京)科技有限公司 | Configuration method and device of router component |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108563431A (en) * | 2018-04-20 | 2018-09-21 | 云宏信息科技股份有限公司 | Software development methodology, device, computer readable storage medium and electronic equipment |
CN109002281A (en) * | 2018-07-17 | 2018-12-14 | 中国建设银行股份有限公司 | Project development method, apparatus and user terminal based on platform assembly |
CN109766097A (en) * | 2018-12-15 | 2019-05-17 | 中国平安人寿保险股份有限公司 | UI generation method, device, electronic equipment and computer readable storage medium |
CN109947426A (en) * | 2019-03-12 | 2019-06-28 | 天津字节跳动科技有限公司 | Generation method, device and the electronic equipment of application program |
-
2019
- 2019-12-20 CN CN201911329185.XA patent/CN111045675B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108563431A (en) * | 2018-04-20 | 2018-09-21 | 云宏信息科技股份有限公司 | Software development methodology, device, computer readable storage medium and electronic equipment |
CN109002281A (en) * | 2018-07-17 | 2018-12-14 | 中国建设银行股份有限公司 | Project development method, apparatus and user terminal based on platform assembly |
CN109766097A (en) * | 2018-12-15 | 2019-05-17 | 中国平安人寿保险股份有限公司 | UI generation method, device, electronic equipment and computer readable storage medium |
CN109947426A (en) * | 2019-03-12 | 2019-06-28 | 天津字节跳动科技有限公司 | Generation method, device and the electronic equipment of application program |
Also Published As
Publication number | Publication date |
---|---|
CN111045675A (en) | 2020-04-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111045675B (en) | A Flutter-based page generation method, device, device and storage medium | |
US10423445B2 (en) | Composing and executing workflows made up of functional pluggable building blocks | |
US10026041B2 (en) | Interoperable machine learning platform | |
Hung et al. | Guidock: using docker containers with a common graphics user interface to address the reproducibility of research | |
CN111221521B (en) | Log code generation method, device, computer system and readable storage medium | |
CN108008954A (en) | Page configuration method, apparatus, server and medium | |
US20200133827A1 (en) | Service virtualization platform | |
US8938712B2 (en) | Cross-platform virtual machine and method | |
US10282190B2 (en) | System and method for updating a UEFI image in an information handling system | |
CN111124409B (en) | Sketch-based business page generation method, device, equipment and storage medium | |
US20150248276A1 (en) | Api publication on a gateway using a developer portal | |
CN116107896A (en) | Method, device and storage medium for realizing automatic test based on virtual serial port | |
US20200150943A1 (en) | Parallel software deployment system | |
CN110413675A (en) | A control method, device, server and storage medium for real-time task computing | |
CN111026463B (en) | Page loading method, device, equipment and storage medium | |
CN111666068B (en) | A platform development framework, construction method, equipment and medium | |
CN113760252B (en) | Data visualization method, device, computer system and readable storage medium | |
CN114625448A (en) | Flow generation method and device combining RPA and AI, electronic equipment and storage medium | |
WO2020221161A1 (en) | Computing job processing method and system, mobile device and acceleration device | |
Menegidio et al. | Bioportainer Workbench: a versatile and user-friendly system that integrates implementation, management, and use of bioinformatics resources in Docker environments | |
CN115422055A (en) | Method and device for testing SDK (software development kit) for developing application program | |
CN115098092A (en) | A page generation method, apparatus, device and storage medium | |
CN111090535B (en) | Communication method, device, electronic equipment and storage medium | |
CN106020996A (en) | Data updating method and data updating apparatus | |
WO2021077282A1 (en) | Neural network model conversion method and apparatus, server, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |