neumorphic 0.1.0 neumorphic: ^0.1.0 copied to clipboard
Neumorphic UI. Implementation of Neumorphism user interface consisting of sets of principles and widgets for the Flutter framework
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:neumorphic_example/screens/showcase.dart';
Color _color = Color(0xFFf2f2f2); // Colors.grey[200]
void main() => runApp(NeumorphicApp());
class NeumorphicApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
statusBarBrightness: Brightness.light,
statusBarIconBrightness: Brightness.dark,
systemNavigationBarColor: _color,
systemNavigationBarIconBrightness: Brightness.dark,
));
return MaterialApp(
title: 'Neumorphic App',
theme: ThemeData(
platform: TargetPlatform.iOS,
primarySwatch: Colors.blue,
backgroundColor: Color.lerp(_color, Colors.black, 0.005),
scaffoldBackgroundColor: _color,
dialogBackgroundColor: Colors.grey[300],
appBarTheme: AppBarTheme(
brightness: Brightness.light,
color: _color,
textTheme: TextTheme(
headline6: TextStyle(
color: Colors.black,
fontSize: 20,
fontWeight: FontWeight.w500,
),
),
iconTheme: IconThemeData(
color: Colors.black,
),
),
),
home: ShowcaseScreen(),
);
}
}