first commit
This commit is contained in:
65
滴滴淘/ddt_flutter/lib/view/page/style.dart
Executable file
65
滴滴淘/ddt_flutter/lib/view/page/style.dart
Executable file
@@ -0,0 +1,65 @@
|
||||
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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user