neumorphic 0.2.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 94

Neumorphic Ui kit for flutter #


Getting Started #

In your flutter project add the dependency:

pub package

  neumorphic: any

Check out library documentation.

Api #

Now implemented some widgets:

  • NeuCard
  • NeuButton
  • NeuSwitch
  • NeuText
  • NeuTextField
  • NeuBackButton
  • NeuAppBar
  • NeuApp

Selection controller

  • neuSelectionControls

NeuCard #

It is container like a Material merged with Container, but implements Neumorphism

  // State of Neumorphic (may be convex, flat & emboss)
  curveType: CurveType.concave,

  // Elevation relative to parent. Main constituent of Neumorphism
  bevel: 12,

  // Specified decorations, like `BoxDecoration` but only limited
  decoration: NeumorphicDecoration(
    borderRadius: BorderRadius.circular(8)

  // Other arguments such as margin, padding etc. (Like `Container`)
  child: Text('Container')

NeuButton #

Button automatically when pressed toggle the status of NeumorphicStatus from concave to convex and back

  onPressed: () {
    print('Pressed !');
  child: Text('Button'),

NeuSwitch #

Remade CupertinoSlidingSegmentedControl which follows Neumorphism

  onValueChanged: (val) {
    setState(() {
      switchValue = val;
  groupValue: switchValue,
  children: {
    0: Padding(
      padding: EdgeInsets.symmetric(vertical: 24, horizontal: 8),
      child: Text('First'),
    1: Padding(
      padding: EdgeInsets.symmetric(vertical: 24, horizontal: 8),
      child: Text('Second'),

NeuText #

It is a Text Widget which can implement Neumorphism. parentColor, spread, depth, style, emboss are properties of this widget which can be modified to obtain different effects.

NeuText('Lorem Ipsum')

NeuTextField #

It is a Text editing widget like Material's TextField which has a few more properties like the support to use a custom selection control.

  controller: _controller,
  decoration: InputDecoration(
    border: OutlineInputBorder(),
    labelText: 'Write',


  • This Selection controls resembles more to android's native text selection tool. Support for additional options will be added in future.

  • NeuTextField's selection controls already defaults to this neuSelectionControls.

NeuBackButton #

A Neumorphic design back button.

Used by NeuAppBar.

NeuAppBar #

A Neumorphic design appBar. This app bar consists of a leading Widget & a title Widget.

App bars are typically used in the Scaffold.appBar property, which places the app bar as a fixed-height widget at the top of the screen.

  title: Text('This is title'),

NeuApp #

NeumorphicApp implements instance of WidgetsApp which utilizes NeuThemeData for adding themes to your app.

The NeuThemeData also adds ThemeData to the widget tree, so you don't have to worry about using MaterialApp again. Material widgets won't have side-effects.

You can access the current Neumorphic NeuThemeData using NeuTheme.of(context). You can also use Theme.of(context) to get ThemeData.

  theme: NeumorphicThemeData(
    brightness: Brightness.dark,
    primaryColor: Colors.blueGrey,
    curveType: curveType.concave,
    lightSource: LightSource.topLeft, // Not implemented yet
  home: Scaffold(
    appBar: NeuAppBar(
      title: const Text('NeumorphicApp Theme'),

Limitations #

  • Not all widgets currently utilize NeuThemeData. This will be changed in later updates of this package.
  • NeuTextField currently isn't much different than material's TextField.

You can make support requests or report problems here on Neumorphic's github issue page.

Inspired by #

  1. Alexander Plyuto (figma)

  2. Ivan Cherepanov (medium)

0.2.0 #

  • Added some new widgets:
  1. NeuText
  2. NeuTextField
  3. NeuBackButton
  4. NeuAppBar
  5. NeuApp
  6. NeuTheme

0.1.2 #

  • Fixed switch background color

0.1.1+1 #

  • Added Getting Started section in readme

0.1.1 #

  • Fixed support flutter stable version

0.1.0 #

  • Renamed Neumorphic => NeuCard, NeumorphicButton => NeuButton and NeumorphicSwitch => NeuSwitch
  • NeumorphicStatus renamed CurveType
  • In CurveType added flat & emboss
  • Improvement switch
  • Added showcase in example
  • Added NeuAppBar, NeuBackButton
  • Added NeuText

0.0.2+1 #

  • Moving a project to a new repository, edited license

0.0.2 #

  • Added NeumorphicSwitch (remade CupertinoSlidingSegmentedControl)

0.0.1 #

  • Initial release


import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'screens/showcase.dart';
// import 'screens/check.dart';
// import 'screens/compare.dart';

void main() => runApp(NeumorphicApp());

Color _color = Color(0xFFf2f2f2); // Colors.grey[200]

class NeumorphicApp extends StatelessWidget {
  Widget build(BuildContext context) {
      statusBarColor: Colors.transparent,
      statusBarBrightness: Brightness.light,
      statusBarIconBrightness: Brightness.dark,
      systemNavigationBarIconBrightness: Brightness.dark,
      systemNavigationBarColor: _color,

    return MaterialApp(
      title: 'Neumorphic App',
      theme: ThemeData(
        platform: TargetPlatform.iOS,
        backgroundColor: Color.lerp(_color,, 0.005),
        scaffoldBackgroundColor: _color,
        dialogBackgroundColor: Colors.grey[300],
        appBarTheme: AppBarTheme(
          brightness: Brightness.light,
          color: _color,
          textTheme: TextTheme(
            title: TextStyle(
              fontSize: 20,
              fontWeight: FontWeight.w500,
          iconTheme: IconThemeData(
      home: ShowcaseScreen(),
      // home: CheckScreen(), // (predatorx7) Used to test user issues.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  neumorphic: ^0.2.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:neumorphic/neumorphic.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 6, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6
  • Flutter: 1.12.13+hotfix.8

Health suggestions

Format lib/src/components/flex_well.dart.

Run flutter format to format lib/src/components/flex_well.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.3.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies