All Projects → zhaomenghuan → flutter-mini-program

zhaomenghuan / flutter-mini-program

Licence: MIT License
A Flutter's mini-program development framework by parsing HTML、CSS and JS / Dart.

Programming Languages

dart
5743 projects
java
68154 projects - #9 most used programming language
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to flutter-mini-program

WeConsole
功能全面、界面与体验对标 Chrome devtools 的可定制化的小程序开发调试面板
Stars: ✭ 137 (-6.8%)
Mutual labels:  miniprogram
Competitive-Programming
This repo conatins the code of the problems practised by me on Codeforces,Codedchef,Leetcode,Geeks For Geeks
Stars: ✭ 14 (-90.48%)
Mutual labels:  dynamic
ip proxy pool
Generating spiders dynamically to crawl and check those free proxy ip on the internet with scrapy.
Stars: ✭ 39 (-73.47%)
Mutual labels:  dynamic
miniprogram
[微信小程序/小游戏] A fast wechat miniprogram/minigame development sdk written in Golang
Stars: ✭ 52 (-64.63%)
Mutual labels:  miniprogram
charles
Java web crawling library
Stars: ✭ 31 (-78.91%)
Mutual labels:  dynamic
face
基于 Remax 的多端研发体系
Stars: ✭ 26 (-82.31%)
Mutual labels:  miniprogram
mall
优达学城小程序商城
Stars: ✭ 21 (-85.71%)
Mutual labels:  miniprogram
react-native-collapsible-list
A ReactNative collapsible list component
Stars: ✭ 70 (-52.38%)
Mutual labels:  dynamic
angular-expression-parser
This library helps in achieving AngularJs equivalents of $parse, $eval and $watch in Angular.
Stars: ✭ 17 (-88.44%)
Mutual labels:  dynamic
mp-weixin-region-data
微信小程序省市区选择器数据字典
Stars: ✭ 18 (-87.76%)
Mutual labels:  miniprogram
wot-design-mini
An ui component library for mini program
Stars: ✭ 28 (-80.95%)
Mutual labels:  miniprogram
gatsby-plugin-dynamic-routes
Creating dynamic routes based on your environment and/or renaming existing routes
Stars: ✭ 14 (-90.48%)
Mutual labels:  dynamic
bowser
⭐ Bowser - Dynamic Default Browser Switch for MacOS
Stars: ✭ 42 (-71.43%)
Mutual labels:  dynamic
ConfessionGuys
告白小人微信小程序
Stars: ✭ 22 (-85.03%)
Mutual labels:  miniprogram
Swash
Fonts in iOS made safe, expressive, and dynamic.
Stars: ✭ 73 (-50.34%)
Mutual labels:  dynamic
guilyx
Dynamic Profile with github statistics, coding info (time and languages) with WakaTime and music status with the spotify API, leave a ⭐ if you like it
Stars: ✭ 175 (+19.05%)
Mutual labels:  dynamic
flutter-Anniversary
一款界面优美,功能简洁的纪念日APP
Stars: ✭ 57 (-61.22%)
Mutual labels:  flutter-widgets
NavigationRail widget
Example Code of Flutter's New Widget in v1.17
Stars: ✭ 20 (-86.39%)
Mutual labels:  flutter-widgets
taro-playground
The Taro Playground App is a cross-platform application developed using Taro, to help developers develop and debug Taro applications.
Stars: ✭ 33 (-77.55%)
Mutual labels:  miniprogram
macro
Customize code using closures
Stars: ✭ 135 (-8.16%)
Mutual labels:  dynamic

中文文档

Flutter MiniProgram

A Flutter's mini-program development framework by parsing HTML、CSS and JS / Dart. This Project is inspired by FlutterHtmlView.

Features

  • Convert html tags to flutter widgets
  • Support use css to rendering flutter widgets
  • Support template compile and data binding

Framework

View layer

The view layer of the framework is written by html and css, and the view layer of the page is defined by the .html file, which is displayed by the component. The data of the logical layer is reflected into a view, and the events of the view layer are sent to the logical layer. A Component is the basic building block of a view.

<template>
    <view class="container">
        <text>{{message}}</text>
        <view class="m-10">
            <button type="primary" onTap="onEvaluateJavascript()">evaluateJavascript</button>
        </view>
    </view>
</template>

<script>
Page({
    config: {
        "navigationBarTitleText": "Flutter MiniProgram - JS-API"
    },
    data: {
        message: "Hello Flutter's MiniProgram"
    },
    onLoad() {

    },
    methods: {
        onEvaluateJavascript: function() {
            log('onEvaluateJavascript');
        }
    }
});
</script>

<style>
.container {
    padding: 10px;
}
.m-10 {
    margin: 10px;
}
</style>

Logic Layer

The logic layer of the mini-program development framework is developed using JS / Dart syntax, and the organization of the view logic and native plugin calls are done through the Dart / Flutter plugin. The logic layer processes the data and sends it to the view layer, while accepting event feedback from the view layer.

Page({
    config: {
        "navigationBarTitleText": "Flutter MiniProgram - JS-API"
    },
    data: {
        message: "Hello Flutter's MiniProgram"
    },
    onLoad() {

    },
    methods: {
        onEvaluateJavascript: function() {
            log('onEvaluateJavascript');
        }
    }
});

Component

Supported Tags

  • view/div: 视图容器
  • icon: 图标
  • text: 文本
  • br: 换行符
  • hr: 水平分隔线
  • p: 段落
  • h1 ~ h6: 标题
  • a: 链接
  • button: 按钮
  • input: 输入框
  • checkbox: 复选框
  • switch: 单选开关
  • slider: 滑块
  • image: 图片
  • video: 视频
  • table: 表格
  • list-view: 列表
  • web-view: 网页容器

View

A view container, equivalent to the div tag of the Web or the View component of React Native.

API

Attribute name Types Defaults Description
class String Custom style name
style String Inline style
onTap EventHandle Click event
onLongTap EventHandle Long press event
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].