You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.2 KiB
48 lines
1.2 KiB
import 'package:cloud_car_internal/gen/assets.gen.dart';
|
|
import 'package:cloud_car_internal/utils/user_tool.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
class HomePage extends StatefulWidget {
|
|
const HomePage({super.key});
|
|
|
|
@override
|
|
_HomePageState createState() => _HomePageState();
|
|
}
|
|
|
|
class _HomePageState extends State<HomePage> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
backgroundColor: Colors.transparent,
|
|
title: Row(
|
|
children: [
|
|
Text(
|
|
'HI,张三',
|
|
style: UserTool.myAppStyle.titleText,
|
|
)
|
|
],
|
|
),
|
|
centerTitle: false,
|
|
),
|
|
extendBody: true,
|
|
extendBodyBehindAppBar: true,
|
|
body: Stack(
|
|
children: [
|
|
Assets.images.homeBg
|
|
.image(fit: BoxFit.fill, width: double.infinity, height: 200.w),
|
|
CustomScrollView(
|
|
slivers: [
|
|
SliverGrid.count(
|
|
crossAxisCount: 4,
|
|
children: [],
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|