All Projects → rodydavis → Flutter_everywhere

rodydavis / Flutter_everywhere

Template Flutter Project for iOS, Android, Fuschica, MacOS, Windows, Linux, Web, Command Line, Chrome Extension

Projects that are alternatives of or similar to Flutter everywhere

Org Wiki
Wiki for Emacs org-mode built on top of Emacs org-mode.
Stars: ✭ 319 (-14.25%)
Mutual labels:  desktop
Negibox
All in one downloader 全能下载器
Stars: ✭ 335 (-9.95%)
Mutual labels:  desktop
Autoedit 2
Fast text based video editing, node Electron Os X desktop app, with Backbone front end.
Stars: ✭ 343 (-7.8%)
Mutual labels:  desktop
Desktoppet
Remembering the lovely eSheep (stray sheep) from 1995 -
Stars: ✭ 321 (-13.71%)
Mutual labels:  desktop
Tornadofx
Lightweight JavaFX Framework for Kotlin
Stars: ✭ 3,499 (+840.59%)
Mutual labels:  desktop
X Webdesktop Vue
基于 Vue & Koa 的 WebDesktop 视窗系统 The WebDesktop system based on Vue
Stars: ✭ 332 (-10.75%)
Mutual labels:  desktop
Linux
XanMod: Linux kernel source code tree
Stars: ✭ 310 (-16.67%)
Mutual labels:  desktop
Ironahk
Cross platform .NET rewrite of the popular AutoHotkey scripting language for desktop automation.
Stars: ✭ 368 (-1.08%)
Mutual labels:  desktop
Eww
ElKowar's wacky widgets
Stars: ✭ 322 (-13.44%)
Mutual labels:  desktop
Electron Java App
Electron Java application - What if you could build Desktop applications on Java with HTML 5 UI
Stars: ✭ 340 (-8.6%)
Mutual labels:  desktop
Zvirtualdesktop
Windows 10 Virtual Desktop Hotkeys, System Tray Icon, Wallpapers, and Task View replacement
Stars: ✭ 322 (-13.44%)
Mutual labels:  desktop
Lively
Stars: ✭ 5,721 (+1437.9%)
Mutual labels:  desktop
Guark
Build awesome Golang desktop apps and beautiful interfaces with Vue.js, React.js, Framework 7, and more...
Stars: ✭ 334 (-10.22%)
Mutual labels:  desktop
Thermal
One stop to manage all git repository
Stars: ✭ 321 (-13.71%)
Mutual labels:  desktop
Instagramlive Php
A PHP script that allows for you to go live on Instagram with any streaming program that supports RTMP!
Stars: ✭ 362 (-2.69%)
Mutual labels:  desktop
Pomodorologger
Pomodoro Logger 🕤 -- When a time tracker meets Pomodoro and Kanban board
Stars: ✭ 316 (-15.05%)
Mutual labels:  desktop
Redis Ui
📡 P3X Redis UI is a very functional handy database GUI and works in your pocket on the responsive web or as a desktop app
Stars: ✭ 334 (-10.22%)
Mutual labels:  desktop
Kahla.app
Kahla is a cross-platform business messaging app.
Stars: ✭ 370 (-0.54%)
Mutual labels:  desktop
Wxwidgets
wxWidgets is a free and open source cross-platform C++ framework for writing advanced GUI applications using native controls.
Stars: ✭ 3,994 (+973.66%)
Mutual labels:  desktop
Rednotebook
RedNotebook is a cross-platform journal
Stars: ✭ 336 (-9.68%)
Mutual labels:  desktop

Flutter Everywhere

Web Demo (PWA): https://rodydavis.github.io/flutter_everywhere/#/

Targets

  • Web
  • Desktop (MacOS, Windows, Linux)
  • Android
  • iOS
  • Electron (MacOS, Windows, Linux)
  • CLI and dart2Native
  • Rest API
  • Chrome Extension

Overview

  • Flutter Client Project: iOS, Android, Web, MacOS, Windows, Linux..
  • Flutter Server Project: REST API to lib/data/models directory..
  • Flutter Command Line Project: CLI to lib/data/models directory..

One project, multiple implementations.

Usage (REST API)

run the project from VsCode with the server config selected.

then you can make post or get requests too http:0.0.0.0/8080

http://0.0.0.0/8080/counter?count=22 yields:

{
    "status": "success",
    "message": "Info",
    "body": {
        "counter": 22
    }
}

Usage (CLI)

dart bin/main.dart counter --add 1 yields:

Counter Value.. 0
Adding..1
Removing..0
Counter Value.. 1

Usage (dart2Native)

Build Executable:

  • dart2native bin/main.dart -o counter

Run Executable:

  • ./counter counter --add 1
Counter Value.. 0
Adding..1
Removing..0
Counter Value.. 1

Usage (Client)

Run Flutter Project Like Normal

flutter run

  • For Electron:

Run: npm install Run: npm run dev or npm run dev_skia

import 'package:flutter/material.dart';

import 'data/models/index.dart';
import 'plugins/desktop/desktop.dart';

void main() {
  setTargetPlatformForDesktop();
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to Colors.green and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or simply save your changes to "hot reload" in a Flutter IDE).
        // Notice that the counter didn't reset back to zero; the application
        // is not restarted.
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.

  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  CounterModel _counter = CounterModel();

  void _incrementCounter() {
    setState(() {
      // This call to setState tells the Flutter framework that something has
      // changed in this State, which causes it to rerun the build method below
      // so that the display can reflect the updated values. If we changed
      // _counter without calling setState(), then the build method would not be
      // called again, and so nothing would appear to happen.
      _counter.add(1);
    });
  }

  @override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
      appBar: AppBar(
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Column(
          // Column is also a layout widget. It takes a list of children and
          // arranges them vertically. By default, it sizes itself to fit its
          // children horizontally, and tries to be as tall as its parent.
          //
          // Invoke "debug painting" (press "p" in the console, choose the
          // "Toggle Debug Paint" action from the Flutter Inspector in Android
          // Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
          // to see the wireframe for each widget.
          //
          // Column has various properties to control how it sizes itself and
          // how it positions its children. Here we use mainAxisAlignment to
          // center the children vertically; the main axis here is the vertical
          // axis because Columns are vertical (the cross axis would be
          // horizontal).
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.display1,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

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].