Files
2024-09-27 01:32:49 +08:00

65 lines
1.8 KiB
Dart
Executable File

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_app/R.dart';
class Style extends StatefulWidget {
@override
_Style createState() => _Style();
}
class _Style extends State<Style> with AutomaticKeepAliveClientMixin {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar:AppBar(
title: Text('分类'),
elevation: 0.0,
),
body: new Container(
child: new Row(
children: <Widget>[
new Row(
children: <Widget>[
new Container(
width: MediaQuery.of(context).size.width,
height: 120.0,
decoration: BoxDecoration(
color: Colors.grey,
image: DecorationImage(
image: AssetImage(R.libStaticImgClassallPng),
fit: BoxFit.cover,
),
),
child: new Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
new Text(
"全 部",
style: TextStyle(
fontSize: 24.0,
fontWeight: FontWeight.bold,
color: Colors.white70
),
)
],
),
),
],
),
new Row(
children: <Widget>[
new Text("dddd")
],
)
],
),
)
);
}
@override
bool get wantKeepAlive => true;
}