flutter_neumorphic 0.0.1 copy "flutter_neumorphic: ^0.0.1" to clipboard
flutter_neumorphic: ^0.0.1 copied to clipboard

outdated

A new Flutter package.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_neumorphic/flutter_neumorphic.dart';

void main() => 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(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Neumophic'),
    );
  }
}

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

  final String title;

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

class _MyHomePageState extends State<MyHomePage> {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: NeumorphicColors.background,
      appBar: AppBar(
        backgroundColor: NeumorphicColors.background,
        title: Text(widget.title, style: Theme.of(context).textTheme.display1),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            NeumorphicContainer(
              child: Padding(
                padding: const EdgeInsets.all(8.0),
                child: Text(
                  "Hello World",
                  style: Theme.of(context).textTheme.display1,
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
1683
likes
0
pub points
96%
popularity

Publisher

unverified uploader

A new Flutter package.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_neumorphic