103 lines
3.3 KiB
Dart
103 lines
3.3 KiB
Dart
import 'package:ef/ef.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:vbvs_app/common/util/FitTool.dart';
|
|
import 'package:vbvs_app/common/util/MyUtils.dart';
|
|
import 'package:vbvs_app/component/tool/WebViewWidget.dart';
|
|
|
|
class FollowPage extends StatefulWidget {
|
|
late MyWebView webView;
|
|
FollowPage({super.key});
|
|
|
|
@override
|
|
State<FollowPage> createState() => _FollowPageState();
|
|
}
|
|
|
|
class _FollowPageState extends State<FollowPage> {
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
// widget.webView = MyWebView(
|
|
// // url: "assets/map/index.html",
|
|
// url: "https://mp.weixin.qq.com/s/LvDtjFSI1au4o0eNrxLHwg",
|
|
// onLoad: () {
|
|
// print('网页载入完毕');
|
|
// },
|
|
// );
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return LayoutBuilder(
|
|
builder: (context, bodySize) => GestureDetector(
|
|
onTap: () => FocusScope.of(context).unfocus(),
|
|
child: Container(
|
|
// decoration: BoxDecoration(
|
|
// image: DecorationImage(
|
|
// image: AssetImage('assets/img/followus.png'), // 本地图片
|
|
// fit: BoxFit.contain, // 填满整个 Container
|
|
// ),
|
|
// ),
|
|
child: Scaffold(
|
|
backgroundColor: Colors.transparent, // 加上这一行
|
|
appBar: AppBar(
|
|
backgroundColor: themeController.currentColor.sc17,
|
|
// backgroundColor: Colors.transparent,
|
|
automaticallyImplyLeading: false,
|
|
iconTheme: IconThemeData(color: themeController.currentColor.sc3),
|
|
titleSpacing: 0,
|
|
// leading: returnIconButtom,
|
|
title: Container(
|
|
width: double.infinity,
|
|
height: 180.rpx,
|
|
child: Stack(
|
|
alignment: Alignment.center,
|
|
children: [
|
|
/// 居中标题
|
|
Text(
|
|
'关注我们'.tr,
|
|
style: TextStyle(
|
|
fontFamily: 'Readex Pro',
|
|
color: themeController.currentColor.sc3,
|
|
letterSpacing: 0,
|
|
fontSize: 30.rpx,
|
|
),
|
|
),
|
|
|
|
/// 左边返回按钮
|
|
Positioned(
|
|
left: 0,
|
|
child: returnIconButtom,
|
|
),
|
|
],
|
|
),
|
|
),
|
|
actions: [],
|
|
centerTitle: false,
|
|
),
|
|
|
|
body: SafeArea(
|
|
top: true,
|
|
child: Padding(
|
|
padding: EdgeInsets.symmetric(horizontal: 0.rpx),
|
|
child: Column(children: [
|
|
Expanded(
|
|
child: Container(
|
|
// child: widget.webView,
|
|
decoration: BoxDecoration(
|
|
image: DecorationImage(
|
|
image: AssetImage('assets/img/followus.png'), // 本地图片
|
|
fit: BoxFit.cover, // 填满整个 Container
|
|
),
|
|
),
|
|
),
|
|
),
|
|
]),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|