sidebar.dart 693 B

1234567891011121314151617181920212223242526272829
  1. import 'package:flutter/material.dart';
  2. class SideBar extends StatelessWidget {
  3. @override
  4. Widget build(BuildContext context) {
  5. return Align(
  6. alignment: Alignment.centerLeft,
  7. child: Container(
  8. width: 200,
  9. color: Colors.lightBlue,
  10. child: Column(
  11. mainAxisAlignment: MainAxisAlignment.start,
  12. crossAxisAlignment: CrossAxisAlignment.start,
  13. children: [
  14. Padding(
  15. padding: const EdgeInsets.all(8.0),
  16. child: Text(
  17. 'Item 1',
  18. style: TextStyle(color: Colors.white, fontSize: 18),
  19. ),
  20. ),
  21. ],
  22. ),
  23. ),
  24. );
  25. }
  26. }