You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
785 B
Dart
27 lines
785 B
Dart
import 'package:car_customer_app/theme/colors.dart';
|
|
import 'package:car_customer_app/extensions/string_extensions.dart';
|
|
import 'package:car_customer_app/extensions/int_extensions.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:sizer/sizer.dart';
|
|
|
|
AppBar appBar({
|
|
Color? backgroundColor,
|
|
double? elevation,
|
|
String? title,
|
|
Color? titleColor,
|
|
bool? isTitleCenter,
|
|
Color? backIconColor,
|
|
List<Widget>? actions,
|
|
}) {
|
|
return AppBar(
|
|
backgroundColor: backgroundColor ?? appBackgroundColor,
|
|
elevation: elevation ?? 0,
|
|
centerTitle: isTitleCenter ?? true,
|
|
iconTheme: IconThemeData(
|
|
color: backIconColor ?? Colors.black, //change your color here
|
|
),
|
|
actions: actions,
|
|
title: (title ?? "").toText(fontSize: 20,isBold: true),
|
|
);
|
|
}
|