Skip to main content
Version: Next

Types and Miscellaneous

Enums and Types and Others

TextAlign​

  • TextAlign.left
  • TextAlign.right
  • TextAlign.center
  • TextAlign.start
  • TextAlign.end
  • TextAlign.justify
import { TextAlign } from "@neneys/ui"

TextAlign.left

TextOverflow​

  • TextOverflow.clip
  • TextOverflow.fade
  • TextOverflow.ellipsis
  • TextOverflow.visible
import { TextOverflow } from "@neneys/ui"

TextOverflow.clip

FontWeight​

FontWeight similar to FontWeight

  • FontWeight.bold
  • FontWeight.w100
  • FontWeight.w200
  • FontWeight.w300
  • FontWeight.w400
  • FontWeight.w500
  • FontWeight.w600
  • FontWeight.w700
  • FontWeight.w800
  • FontWeight.w900

MainAxis​

  • MainAxis.start
  • MainAxis.center
  • MainAxis.end
  • MainAxis.spaceBetween
  • MainAxis.spaceAround
  • MainAxis.spaceEvenly

CrossAxis​

  • MainAxis.start
  • MainAxis.center
  • MainAxis.end
  • MainAxis.stretch

Colors​

Only some Basic Colors There's no Parser or such yet.

  • Colors.red
  • Colors.blue
  • Colors.green
  • Colors.violet
  • Colors.black
  • Colors.black

TextDecoration​

Decoration stlye for Text

  • TextDecoration.none
  • TextDecoration.lineThrough
  • TextDecoration.overline
  • TextDecoration.underline

FontStyle​

  • FontStyle.normal
  • FontStyle.Italic

TextStyle​

import { TextStyle } from "@neneys/ui"

TextStyle({
height: 1.0
})
ParamValueDefault
heightfloat1.0
fontSizefloat14
fontWeightFontWeight.w400
colorstringColors.black
decorationTextDecorationTextDecoration.none
fontStyleFontStyleFontStyle.normal

AssetImage​

Loads Image fraom the Assets Folder (during compilation)

import { AssetImage } from "@neneys/ui"

AssetImage("assets/nene.png")

NetworkImage​

Loads Image from the Network / URL

import { NetworkImage } from "@neneys/ui"

NetworkImage("https://example.com/network.png")

BoxDecoration​

import { BoxDecoration } from "@neneys/ui"

BoxDecoration({..})
ParamValueDefault
colorHex Code#FFFFFF
imageAssetImage, NetworkImagenone
radiusint1
borderColorHex Code#FFFFFF
borderWidthint1

EdgeInsets​

import { EdgeInsets } from "@neneys/ui"

EdgeInsets.all(10)

.all​

.all(integer) from all LTRB Sides

.fromLTRB(left, top, right, bottom)​

All must be in Integer

Density​

Density of the Themed UI

  • Density.compactDensity
  • Density.defaultDensity
  • Density.reducedDensity
  • Density.spaciousDensity

Brightness​

Brightness of the Application

  • Brightness.light
  • Brightness.dark

Axis​

Axis literally (not to be confused with Axis Bank)

  • Axis.horizontal
  • Axis.vertical

PromptMode​

PromptMode for how the Prompt Shows up..

  • PromptMode.dialog
  • PromptMode.popup

DateFormat​

Date format of ddmmmyy and others DateFormt.ddmmyyyy DateFormat.yyyyMMdd DateFormat.dd_mm_yyy DateFormat.millisecondsSinceEpoch

DateTime​

DateTime for Date & Time for DatePicker

  • DateTime.now()
  • DateTime.from(day, month, year)

Direction​

  • Direction.Horizontal
  • Direction.Vertical

ImageRepeat​

  • ImageRepeat.repeat
  • ImageRepeat.repeatX
  • ImageRepeat.repeatY
  • ImageRepeat.noRepeat

BoxFit​

  • BoxFit.none
  • BoxFit.contain
  • BoxFit.fill
  • BoxFit.fitWidth
  • BoxFit.fitHeight
  • BoxFit.cover

Alignment​

  • Alignment.bottomCenter
  • Alignment.bottomLeft
  • Alignment.bottomRight
  • Alignment.center
  • Alignment.centerLeft
  • Alignment.centerRight
  • Alignment.topCenter
  • Alignment.topLeft
  • Alignment.topRight

FilterQuality​

  • FilterQuality.none
  • FilterQuality.low
  • FilterQuality.medium
  • FilterQuality.high