page.dart 1016 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import 'package:flutter/material.dart';
  2. import '../constants.dart';
  3. import '../utils/size_fit.dart';
  4. import 'component/top_container.dart';
  5. class Login extends StatefulWidget {
  6. const Login({Key? key}) : super(key: key);
  7. @override
  8. State<Login> createState() => _LoginState();
  9. }
  10. class _LoginState extends State<Login> {
  11. @override
  12. Widget build(BuildContext context) {
  13. SizeFit.initialize(context);
  14. return Material(
  15. color: kBgColor,
  16. child: TopContainer(
  17. child: Stack(children: [
  18. Positioned(
  19. left: 0,
  20. top: 0,
  21. right: 0,
  22. child: Container(
  23. padding: EdgeInsets.only(
  24. left: 12.px, right: 12.px, top: 14.px, bottom: 14.px),
  25. alignment: Alignment.topLeft,
  26. child: Image.asset(
  27. 'assets/images/navi_back.png',
  28. width: 20.px,
  29. height: 20.px,
  30. ),
  31. )),
  32. ])));
  33. }
  34. }