Initial commit

This commit is contained in:
toly
2023-08-10 07:33:22 +08:00
commit bfa0710b4d
133 changed files with 5068 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
class StlColorPage extends StatelessWidget {
final Color color;
const StlColorPage({super.key, required this.color});
@override
Widget build(BuildContext context) {
const TextStyle style = TextStyle(
fontSize: 32,
fontWeight: FontWeight.bold,
color: Colors.white
);
String text = '# ${color.value.toRadixString(16)}';
return Scaffold(
appBar: AppBar(
systemOverlayStyle: SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
statusBarIconBrightness: Brightness.light
),
iconTheme: IconThemeData(color: Colors.white),
titleTextStyle:TextStyle(color: Colors.white,fontSize: 18) ,
backgroundColor: color,
title: Text('颜色界面',),),
body: Container(
alignment: Alignment.center,
color: color,
child: Text(text ,style: style,),
),
);
}
}