Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

35 lignes
977 B

  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_gen/gen_l10n/app_localizations.dart';
  3. import 'package:qadirneyriz/config/config.dart';
  4. class CustomAppbar extends StatelessWidget {
  5. final String? title;
  6. const CustomAppbar({super.key, this.title});
  7. @override
  8. Widget build(BuildContext context) {
  9. return SliverAppBar(
  10. title: Row(
  11. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  12. children: [
  13. const SizedBox(),
  14. Text(
  15. this.title == null
  16. ? AppLocalizations.of(context)!.appname
  17. : this.title ?? '',
  18. style: const TextStyle(
  19. fontSize: 12,
  20. color: Colors.black,
  21. ),
  22. ),
  23. Image.asset(
  24. 'assets/images/iconinappbar.png', // مسیر لوگو رو اینجا قرار بده
  25. height: 60,
  26. ),
  27. ],
  28. ),
  29. backgroundColor: config.ui.backGroundColor,
  30. );
  31. }
  32. }