适应瑞库克主题做了更改

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

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

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

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

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

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

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

Loading…
Cancel
Save