123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import 'package:flutter_screenutil/flutter_screenutil.dart';
- import 'package:flutter/material.dart';
- import 'package:hengyi/config/config.dart';
- import '../utils/common_util.dart';
- class AboutUSWidget extends StatelessWidget {
- AboutUSWidget({super.key});
- var textSize = 0.0;
- var contentSize = 0.0;
- var margin = 0.0;
- @override
- Widget build(BuildContext context) {
- if(Util.isWeb()){
- textSize = 30.sp;
- contentSize = 22.sp;
- margin = 0.3.sw;
- }else{
- textSize = 60.sp;
- contentSize = 44.sp;
- margin = 0.1.sw;
- }
- return SingleChildScrollView(
- child: Column(
- children: [
- Container(
- margin: EdgeInsets.only(top: 100.h),
- child: Text(
- "关于我们",
- style: TextStyle(fontSize: textSize, color: Colors.black),
- ),
- ),
- Container(
- margin: EdgeInsets.only(left: margin, right: margin, top: 30.h),
- child: Text(
- AppConfig.configContent,
- style: TextStyle(fontSize: contentSize, color: Colors.black),
- )),
- ],
- ),
- );
- }
- }
|