适应瑞库克主题做了更改

master
章文轩 3 years ago
parent c3b172f0ef
commit 1cf9314b6c

@ -17,7 +17,7 @@ class MyApp extends StatelessWidget {
return MaterialApp( return MaterialApp(
title: 'PowerLogger\nDemo', title: 'PowerLogger\nDemo',
home: MyHomePage(title: 'PowerLogger Demo'), home: MyHomePage(title: 'PowerLogger Demo'),
theme: ThemeData.dark(), //theme: ThemeData.dark(),
); );
} }
} }

@ -10,9 +10,7 @@ class UnfocusParser extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Material( return Material(
color: Theme.of(context).brightness == Brightness.light color: Colors.white10,
? Colors.black12
: Colors.white10,
child: ListTile( child: ListTile(
onTap: () => Navigator.push( onTap: () => Navigator.push(
context, context,

@ -21,12 +21,12 @@ class BoxView extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
DefaultTextStyle( DefaultTextStyle(
style: Theme.of(context).textTheme.caption!, style: TextStyle(fontSize: 16,color: Colors.red),
child: title, child: title,
), ),
child == null ? SizedBox() : SizedBox(height: 10), child == null ? SizedBox() : SizedBox(height: 10),
DefaultTextStyle( DefaultTextStyle(
style: Theme.of(context).textTheme.bodyText2!, style: TextStyle(fontSize: 15,color: Color(0xFF333333)),
child: child ?? SizedBox(), child: child ?? SizedBox(),
), ),
children == null ? SizedBox() : SizedBox(height: 10), children == null ? SizedBox() : SizedBox(height: 10),

@ -9,7 +9,7 @@ class TitleView extends StatelessWidget {
return Padding( return Padding(
padding: EdgeInsets.symmetric(horizontal: 5, vertical: 10), padding: EdgeInsets.symmetric(horizontal: 5, vertical: 10),
child: DefaultTextStyle( child: DefaultTextStyle(
style: Theme.of(context).textTheme.headline4!, style: TextStyle(fontSize: 26,color: Color(0xFF666666)),
child: title, child: title,
), ),
); );

@ -72,7 +72,7 @@ class _InfoViewState extends State<InfoView>
delegate: SliverChildListDelegate([ delegate: SliverChildListDelegate([
ListTile( ListTile(
title: Text('Package Info'), title: Text('Package Info'),
tileColor: Theme.of(context).accentColor.withOpacity(0.2), tileColor: Colors.blue.withOpacity(0.2),
), ),
InfoTile(title: 'appName', subTitle: packageInfo!.appName), InfoTile(title: 'appName', subTitle: packageInfo!.appName),
InfoTile( InfoTile(
@ -82,7 +82,7 @@ class _InfoViewState extends State<InfoView>
InfoTile(title: 'version', subTitle: packageInfo!.version), InfoTile(title: 'version', subTitle: packageInfo!.version),
ListTile( ListTile(
title: Text('Device Info'), title: Text('Device Info'),
tileColor: Theme.of(context).accentColor.withOpacity(0.1), tileColor: Colors.blue.withOpacity(0.1),
), ),
])), ])),
_buildView(), _buildView(),

@ -105,7 +105,7 @@ class _FabButton extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
decoration: BoxDecoration( decoration: BoxDecoration(
color: Theme.of(context).accentColor, color: Colors.blue,
borderRadius: BorderRadius.circular(25), borderRadius: BorderRadius.circular(25),
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(

Loading…
Cancel
Save