material_x 0.1.0
material_x: ^0.1.0 copied to clipboard
A new Flutter package project.
example/lib/main.dart
import 'package:material_x/material_x.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
mxStatusBar();
return MyHomePage().mxMaterialApp(title: 'zeeshan');
}
}
class MyHomePage extends StatefulWidget {
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
bool isActive = true;
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
appBar: new AppBar(
title: "MXListTile".textMaterialColorBlack(),
brightness: Brightness.light,
centerTitle: true,
backgroundColor: Colors.white,
),
body: Padding(
padding: const EdgeInsets.all(10.0),
child: <Widget>[
MXListTile(
onTap: () {
},
icon: Icons.home,
selectedColor: Colors.black,
unSelectedColor: Colors.red,
selected: true,
text: "Home")
].mxListView()),
);
}
}