neuomorphic_container 1.0.1

neuomorphic_container #

A package widget that applies the concept of Neuomorphism in software development using Flutter.

Getting Started #

Neumorphic containers pretends to extrude from the background. It’s an elevated form created from the same element of the background.

This project works best with your application background color set to Color.fromRGBO(239, 238, 238, 1.0)) The Neuomorphic Container here requires a background color of Color.fromRGBO(239, 238, 238, 1.0)) to display properly.

Usage #

To use this package, just import 'package:neuomorphic_container/neuomorphic_container.dart';

Explore the example directory for a sample application of this package widget

Sample Application #

ios android

Inspiration #

Awwwards UI Trends

For help getting started with Flutter, check out online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

[0.0.1] - 2020-01-16.

  • A flutter widget container that showcases the application of neuomorphism as a concept in UI design

[0.0.2] - 2020-01-16.

  • A flutter widget container that showcases the application of neuomorphism as a concept in UI design

[1.0.1] - 2020-01-16.

  • A flutter widget container that showcases the application of neuomorphism as a concept in UI design

example/README.md

example #

A new Flutter project that explores the use of Neuomorphic Container as a tool of design.

sample code #

import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:example/utils/sizeConfig.dart';
import 'package:example/utils/uiData.dart';
import 'package:neuomorphic_container/neuomorphic_container.dart';

class Neuomorphism extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    SizeConfig().init(context);
    final container = NeuomorphicContainer(
      child: Column(
        children: <Widget>[
          Row(
            children: <Widget>[
              Text("   ${UIData.bankName}",
                  style: TextStyle(
                      color: Colors.black87,
                      fontWeight: FontWeight.bold,
                      fontSize: 20.0,
                      fontStyle: FontStyle.italic)),
              Image.asset(
                "assets/images/chip.png",
              ),
            ],
            mainAxisAlignment: MainAxisAlignment.spaceAround,
          ),
          Row(
            children: <Widget>[
              Text("      5303   6084\n      2402   3649",
                  style: TextStyle(
                      color: Colors.black87, fontWeight: FontWeight.bold)),
            ],
            mainAxisAlignment: MainAxisAlignment.start,
          ),
          SizedBox(height: SizeConfig.blockSizeVertical * 2),
          Expanded(
              child: Image.asset(
            "assets/images/ce.png",
            fit: BoxFit.cover,
            width: SizeConfig.blockSizeHorizontal * 40,height:SizeConfig.blockSizeVertical*40
          )),
          Expanded(
              child: Align(
                  child: Row(children: [
                    Text("   ESAN \n   TOMISIN      \n",
                        style: TextStyle(
                            color: Colors.black87,
                            fontWeight: FontWeight.bold)),
                    Text("09/24    \n",
                        style: TextStyle(
                            color: Colors.black87, fontWeight: FontWeight.bold))
                  ], mainAxisAlignment: MainAxisAlignment.spaceAround),
                  alignment: Alignment.bottomRight))
        ],
      ),
      width: SizeConfig.blockSizeHorizontal * 53.33,
      height: SizeConfig.blockSizeVertical * 37,
      borderRadius: BorderRadius.circular(15.0),
    );
    return Scaffold(
        body: Column(
          children: <Widget>[
            Flexible(
                child: SizedBox(height: SizeConfig.blockSizeVertical * 2.5),
                flex: 1),
            Flexible(
                child: Column(
                  children: <Widget>[
                    Column(
                      children: <Widget>[
                        Padding(
                            padding: EdgeInsets.only(left: 30.0),
                            child: Row(
                              children: <Widget>[
                                Container(
                                  decoration: BoxDecoration(
                                      borderRadius: BorderRadius.circular(10.0),
                                      color: Colors.blueGrey[100],
                                      boxShadow: [
                                        BoxShadow(
                                            color: Color.fromRGBO(
                                                209, 205, 199, 1.0),
                                            blurRadius: 16.0),
                                      ],
                                      border: Border.all(
                                          color: Color.fromRGBO(
                                              239, 238, 238, 1.0))),
                                  child: Row(
                                    children: <Widget>[
                                      Padding(
                                          padding: EdgeInsets.only(left: 10.0),
                                          child: Icon(Icons.keyboard_backspace,
                                              color: Colors.blueGrey[500])),
                                      Container(
                                        decoration: BoxDecoration(
                                            color: Color.fromRGBO(
                                                239, 238, 238, 1.0),
                                            borderRadius:
                                                BorderRadius.circular(10.0)),
                                        child: Padding(
                                            padding: EdgeInsets.all(5.0),
                                            child: Icon(Icons.apps,
                                                size: 30.0,
                                                color: Colors.blueGrey[200])),
                                        margin: EdgeInsets.only(left: 10.0),
                                      )
                                    ],
                                    mainAxisAlignment:
                                        MainAxisAlignment.spaceAround,
                                  ),
                                ),
                                SizedBox(width: 20.0),
                                Text(UIData.statistic,
                                    style: TextStyle(
                                        color: Colors.black,
                                        fontSize: 30.0,
                                        fontWeight: FontWeight.bold)),
                              ],
                            )),
                        NeuomorphicContainer(
                            child: Row(
                              children: <Widget>[
                                Text("${UIData.period}:",
                                    style: TextStyle(
                                        color: Colors.blueGrey, fontSize: 15)),
                                Text(UIData.last30Days,
                                    style: TextStyle(
                                        color: Colors.blueGrey,
                                        fontSize: 16.0,
                                        fontWeight: FontWeight.bold)),
                                SizedBox(width: 10.0),
                                NeuomorphicContainer(
                                    shape: BoxShape.circle,
                                    child: Padding(
                                      padding: EdgeInsets.all(3.0),
                                      child: Icon(Icons.navigate_next,
                                          color: Colors.blueGrey, size: 30.0),
                                    ))
                              ],
                              mainAxisAlignment: MainAxisAlignment.spaceAround,
                            ),
                            margin: EdgeInsets.all(20.0),
                            height: SizeConfig.blockSizeVertical * 6.12,
                            borderRadius: BorderRadius.circular(10.0)),
                      ],
                    ),
                  ],
                ),
                flex: 2),
            Flexible(child: container, flex: 5),
            Flexible(
                child: NeuomorphicContainer(
                    child: Container(
                      decoration: BoxDecoration(
                          borderRadius: BorderRadius.circular(10.0),
                          border: Border.all(
                              color: Color.fromRGBO(209, 205, 199, 1.0),
                              width: 2.0)),
                      width: SizeConfig.blockSizeHorizontal * 80,
                      child: Column(
                        children: <Widget>[
                          Row(
                            children: <Widget>[
                              Icon(Icons.account_balance,
                                  color: Colors.blueGrey),
                              Text("25%",
                                  style: TextStyle(
                                      color: Colors.black,
                                      fontWeight: FontWeight.bold))
                            ],
                            mainAxisAlignment: MainAxisAlignment.spaceBetween,
                          ),
                          SizedBox(height: 10.0),
                          Row(
                            children: <Widget>[
                              Text(UIData.bankName,
                                  style: TextStyle(
                                      color: Colors.blueGrey,
                                      fontWeight: FontWeight.bold)),
                              Text("₦ 950,000",
                                  style: TextStyle(
                                      color: Colors.black,
                                      fontWeight: FontWeight.bold))
                            ],
                            mainAxisAlignment: MainAxisAlignment.spaceBetween,
                          )
                        ],
                        mainAxisAlignment: MainAxisAlignment.center,
                      ),
                      padding: EdgeInsets.only(left: 20.0, right: 20.0),
                    ),
                    height: 100.0,
                    borderRadius: BorderRadius.circular(10.0),
                    border: Border.all(
                        color: Color.fromRGBO(239, 238, 238, 1.0), width: 3.0)),
                flex: 2),
            Flexible(
              child: Padding(
                child: Row(
                  children: [
                    NeuomorphicContainer(
                        child: Padding(
                          padding: EdgeInsets.all(10.0),
                          child: Icon(Icons.account_balance,
                              color: Colors.blueGrey[300], size: 30.0),
                        ),
                        borderRadius: BorderRadius.circular(15.0)),
                    NeuomorphicContainer(
                        child: Padding(
                          padding: EdgeInsets.all(10.0),
                          child: Icon(Icons.home,
                              color: Colors.blueGrey[300], size: 30.0),
                        ),
                        borderRadius: BorderRadius.circular(15.0)),
                    NeuomorphicContainer(
                        child: Padding(
                          padding: EdgeInsets.all(10.0),
                          child: Icon(Icons.credit_card,
                              color: Colors.blueGrey[300], size: 30.0),
                        ),
                        borderRadius: BorderRadius.circular(15.0)),
                    NeuomorphicContainer(
                        child: Padding(
                          padding: EdgeInsets.all(10.0),
                          child: Icon(Icons.settings,
                              color: Colors.blueGrey[300], size: 30.0),
                        ),
                        borderRadius: BorderRadius.circular(15.0)),
                  ],
                  mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                ),
                padding: EdgeInsets.only(bottom: 5.0),
              ),
              flex: 1,
            ),
          ],
          mainAxisAlignment: MainAxisAlignment.spaceAround,
        ),
        backgroundColor: Color.fromRGBO(239, 238, 238, 1.0));
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  neuomorphic_container: ^1.0.1

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:neuomorphic_container/neuomorphic_container.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
66
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
83
Learn more about scoring.

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

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.7

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.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
flutter_test