• Stars
    star
    196
  • Rank 192,287 (Top 4 %)
  • Language
    Dart
  • License
    MIT License
  • Created over 1 year ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Customizable Flutter UI library inspired by old 8bits video games.

Nes

style: very good analysis Powered by Mason License: MIT

UI library inspired by old retro video game console

Installation 💻

In order to start using Nes UI you must have the Flutter SDK installed on your machine.

Add nes_ui to your pubspec.yaml:

dependencies:
  nes_ui:

Install it:

flutter packages get

Configure it

Nes UI provides a ThemeData that you can add to your MaterialApp, that theme can be obtained from the flutterNesTheme method:

import 'package:nes_ui/nes_ui.dart';

MaterialApp(
  theme: flutterNesTheme(),
);

Check the many arguments on the method to customize the theme.

Font

Nes UI uses the Press start 2P from the Google Fonts package.

Google fonts will fetch the files in runtime over http. To keep that behaviour and ensure that it works, be sure to call WidgetsFlutterBinding.ensureInitialized(); at your main method.

For more info on that follow this Google Fonts package guide.

If instead you want to bundle the fonts in the app and avoid http requests, follow this other guide.

You also should include the font license on LicenseRegistry when bundling it on the app.

For example:

void main() {
  LicenseRegistry.addLicense(() async* {
    final license = await rootBundle.loadString('google_fonts/OFL.txt');
    yield LicenseEntryWithLineBreaks(['google_fonts'], license);
  });

  runApp(...);
}

More about font license here.

Check the gallery of all widgets here.

Material Customized Widgets

Nes UI tries to use the most out of material that it can, customizing its looks to fit the package's desired look, here is the list of widgets from Material that is customized by Nes UI

  • Text
  • TextField/TextFormField
  • Divider

Custom Widgets

Some widgets are too different from the Material look and structure, which was not possible to achieve without building the whole widget from scratch, this is the list of widgets that Nes UI provides:

  • NesButton
  • NesCheckbox
  • NesContainer
  • NesConfirmDialog
  • NesIcon
  • NesSelectionList
  • NesIterableOptions

More to come!

Custom Extension

Nes UI is built taking advantage of the Theme Extensions and custom extensions can also be provided. In order to provide your own extension, you need to create it, and provide it to the flutterNesTheme:

    theme: flutterNesTheme(
      brightness: state.lightMode ? Brightness.light : Brightness.dark,
      customExtensions: [
        CustomExampleExtension.light, // Your custom extension goes here.
      ],
    ),

For more information, look at the example code.

More Repositories

1

flutter-gh-pages

Automates the build and deployment of your Flutter web app on Github gh pages
74
star
2

dashmon

A cli tool to run Flutter applications and auto hot reload it when files are changed
Dart
43
star
3

phased

Simplified state management focused on animations
Dart
29
star
4

marble

Dart HTML generation engine
Dart
24
star
5

gifrecorder

Bash script to record your screen in a gif
Shell
16
star
6

sublight_game

A game about management of resources on a colony starship.
Dart
14
star
7

ember8

Ember 8 is a Fantasy Console built on top of Flutter/Flame
Dart
12
star
8

stepbar

Jquery widget for drawing an step bar that shows the current step you are in a wizard process
JavaScript
10
star
9

my_pixels

Dart
9
star
10

slices

Simple global state management for Flutter
Dart
8
star
11

bit_weather

Small weather application with a cool 8bits style
Dart
8
star
12

my_bricks

Repository with the code for the bricks that I created for mason.
Dart
8
star
13

tinypng.sh

tinypng.sh is a simple tool that lets you use the API from https://tinypng.com/ to easily compress you image from your terminal.
Shell
7
star
14

dwart

Dart + Dwarf = Dwart
Dart
7
star
15

now-i-am-a-lamp

Everybody wants to be a lamp, so why not?
TypeScript
7
star
16

dwart_game

A Dwarf game made with Dart, Flutter and Flame
Dart
7
star
17

dj

doT for java
Java
7
star
18

locomotive

Simple Java8 rest library
Java
6
star
19

my_life_on_the_moon

Game My Life on the Moon, entry for the GitHub Game Off 2020
Dart
6
star
20

flame-gamepad-example

Repository with an simple example of an gamepad integration using the Flame game engine
Dart
6
star
21

flame_shooter

Project to learn about raycasting 3d engines
Dart
6
star
22

flame_rider

Simple retro racing game written in Flutter/Flame
Dart
6
star
23

super_dash_counter

The classic Flutter Counter example, but with pretty pixels and code push ready
Dart
6
star
24

git-cutlass

Git Cutlass is a simple curses-like tool to work with git (Work in progress)
JavaScript
5
star
25

remo-candy-hunter

Game made for Rigid Jam 2
Dart
5
star
26

quary

Quary is a simple snippet tool written in Flutter
Dart
5
star
27

vim-xclip

Simple vim plugin that copy your current selection into your clipboard
Vim Script
5
star
28

fireslime.vim

Vim color theme
Vim Script
5
star
29

fantasy_widgets

Fantasy Widgets is a Flutter package that provide a collection of widgets that resemble old time RPG games
Dart
5
star
30

bricks

My collection of mason bricks.
Dart
5
star
31

maven-watcher

Cli tool to update the deployed resources of a java/maven web project when there is changes on the files
JavaScript
5
star
32

rambi

Rambi is a simple framework to let you develop on Google App Engine using JavaScript
Java
4
star
33

flux-launcher

Simple app to launch applications on linux
Python
4
star
34

space_burger

An example Flutter app showing how to easily integrate with Flame games
Dart
4
star
35

war-machines

Repository with combat vehicle information
JavaScript
4
star
36

byteforge-os

my i3 window manager config
JavaScript
4
star
37

shortcutter

Bash script to create folders shortcuts on your terminal
Shell
4
star
38

piccolodb

Very simple embed nosql database to store and retrive data in JSON format
Java
4
star
39

rubber

HTML5, multiplatform game engine
JavaScript
3
star
40

dotfiles

My dotfiles
Vim Script
3
star
41

promisified-espeak

Simple wrap to the espeak cli program, providing a promisified api
JavaScript
3
star
42

looping

Simple javascript/html5 game loop library
CSS
3
star
43

golem

Golem is a static site genarator that can emulate sites with dynamic behaviour. It is meant to be used by programmer since it requires programming knowledge
JavaScript
3
star
44

javeando

Repositório com fontes Java contendo desafios com o intuito do treinamento na linguagem
Java
3
star
45

spritexp

Kinda like a regular expression language, but for Sprites.
Dart
3
star
46

luna-blog

Stupid simple blog engine written in Lua using the lapis framework
Lua
3
star
47

threebar

Status bar for i3 window manager, simple to customizable and asynchronous update
JavaScript
3
star
48

gson2xml

Simple API to generate and XML from a JsonObject (Gson library)
Java
3
star
49

retro_game_controller

Flutter package that unifies different old school game controllers and different platforms hardware in a single API
Dart
3
star
50

jquery.lightElement

Simple plugins for focus an element using the "Turn the lights off" effect
JavaScript
3
star
51

javafxstudy

Repositório com estudo sobre o JavaFX
Java
3
star
52

CptBlackPixel

Repository for the my GameDev portfolio
JavaScript
3
star
53

yno

Yno is Not an ORM
Java
2
star
54

spectre

Rspec based test framework for Java 8
Java
2
star
55

play_flutter_games

A hub to find Flutter made games.
Dart
2
star
56

pathxp

Like regular expressions but for defining paths in a grid
Dart
2
star
57

trickster

Simple mock framework for nodejs
JavaScript
2
star
58

android.sh

Simple bash utility to use Android CLI tools
Shell
2
star
59

h.js

Simple and Lightweight tool to manipulate DOM, avoiding string interpolation
JavaScript
2
star
60

android-gear

A game engine for android
Java
2
star
61

dummy-server

Very simple http server used to run a httpserver for prototyping and development purpose
JavaScript
2
star
62

secret-chef

Dart
2
star
63

jutt

Javascript Unit Test for Templates
Java
2
star
64

warn-kill-counter

A very simple application to rank members of java project by the number of warning kill they made.
JavaScript
2
star
65

ent.js

Simple library to manage a virtual structure for files and folders, ent.js has methods to navigate, search and alter the table.
JavaScript
2
star
66

mini_dungeon_maker

A community based, dungeon crawler game.
Dart
2
star
67

fretenator

Client java para cálculo do frete usando o webservice dos correios
Java
2
star
68

spitfire-editor

Code editor built with node/node-webkit
JavaScript
2
star
69

mid_year_jam_demo

Small Demo for the Mid Year Flame Jam
Dart
2
star
70

gas

GAS - Getters and Setters. Simple library to get an instance getters and setters in java
Java
2
star
71

drizzle

A simple package to persist and query small dataset of data
Dart
1
star
72

value_retriever

A dart package that creates a value controller that allows a value to be retrieved
Dart
1
star
73

JJV

Java Json Validator
Java
1
star
74

jgr

Just Gimme Routes
Java
1
star
75

ignorer

Simple cli app to create predefined .gitignore files to your project
JavaScript
1
star
76

uglytree

Simple terminal navigation tree to open files on vim to take full power of i3 window manager
JavaScript
1
star
77

che

Stupidy tool to convert special characters to html entities
JavaScript
1
star
78

pair-distance

JavaScript
1
star
79

yan

Simple webbrowser built with node-webkit
JavaScript
1
star
80

easymaven

Cli tool to simplify the dependency adding for maven projects
JavaScript
1
star
81

qri

QRI is a fantasy console where games are distributed by QR Codes.
Dart
1
star
82

typecalc

Simple terminal based spreadsheet calculator
TypeScript
1
star
83

navigatorr

Generic url router written in Scala using the trie tree
Scala
1
star
84

angular-typeahead

Simple angular directive for bootstrap plugin typeahead
1
star
85

react-native-style-shortcuts

React Native style utilities
JavaScript
1
star
86

vector-study

Study of vector in games using lua, following the article on http://www.rnavarro.com.br/2012/07/13/vetores
Lua
1
star
87

trovare

Simple nodejs module to find a string recursively in a folder
JavaScript
1
star
88

fallout-hacker-assistant

Simple web app to help Fallout 4 players to hack terminals in game
JavaScript
1
star
89

spriteroundry

Sprite Foundry is a simple gae and html5 application created for drawing simple 8 bits spritesheets!
JavaScript
1
star
90

pixel_dash

Dash sprites in 8-bits
Dart
1
star