GithubHelp home page GithubHelp logo

triptych / flutter-style-javascript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yessglory17/flutter-style-javascript

0.0 1.0 0.0 2.12 MB

my funny project 🤣

License: MIT License

TypeScript 87.84% JavaScript 12.16%

flutter-style-javascript's Introduction

flutter-style-javascript

This project is for experimental purposes only.

Usage

  • Create a HTML file and put body tag id 'app'
  • Create Javscript file and connect HTML file ('<script src="main.js" type="module"></script>')
  • import fsjs.minjs with cdn

CDN

    https://cdn.jsdelivr.net/gh/yessGlory17/flutter-style-javascript/fsjs.min.js

Example

import {
    Div,
    Button,
    Text,
    TextTypes,
    Style
} from 'https://cdn.jsdelivr.net/gh/yessGlory17/flutter-style-javascript/fsjs.min.js';

Div({
    childs:[
        Text({
        content:'Heeey',
        type:TextTypes.H1
        }),
        Button({
            text: Text({content:'press',type:TextTypes.H1}),
            onClick:()=>console.log('hello world'),
            style:Style({
                backgroundColor:'green'
            })
        })
    ],
    style:Style({
        width:'300px',
        height:'200px',
        backgroundColor:'red'
    })
})

Output

Example 1

Components

  • Div
  • Button
  • Text (H1,H2,H3,H4,H5,H6,p)
  • Style (width,height,border,border-radius,background-color)
  • Picture
  • Input (text, file, password, etc.)
  • Navbar
  • Bottom Navigation Bar
  • Animation

Library

  • Main Widget Class
  • Statefull Widget
  • Stateless Widget

State

  • State Pattern Implementation

Examples

  • Counter App
  • CRUD App

flutter-style-javascript's People

Contributors

yessglory17 avatar

Watchers

 avatar

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.