common_title.dart 862 B

123456789101112131415161718192021222324252627282930313233
  1. import 'package:flutter/material.dart';
  2. class CommonTitleWidget extends StatelessWidget {
  3. const CommonTitleWidget({super.key});
  4. @override
  5. Widget build(BuildContext context) {
  6. return SizedBox(
  7. width: MediaQuery.of(context).size.width,
  8. height: 150,
  9. child: Row(
  10. mainAxisAlignment: MainAxisAlignment.center,
  11. children: [
  12. const Image(
  13. image: AssetImage("images/logo.png"),
  14. width: 80,
  15. height: 80,
  16. ),
  17. Container(
  18. margin: const EdgeInsets.only(left: 10),
  19. child: const Text(
  20. "夫为因私出入境服务中心",
  21. style: TextStyle(
  22. color: Colors.black,
  23. fontSize: 24,
  24. fontWeight: FontWeight.bold),
  25. ),
  26. )
  27. ],
  28. ),
  29. );
  30. }
  31. }