CustomAppBar class

Tamamen özelleştirilebilir AppBar widget'ı.

PreferredSizeWidget implement eder, doğrudan Scaffold.appBar'a verilebilir. Tüm property'ler opsiyoneldir — yalnızca ihtiyaç duyulanlar verilir.

CustomAppBar(
  title: 'Ana Sayfa',
  leadingIcon: Icons.menu,
  actions: [CustomIconButton(iconData: Icons.search, onPressed: () {})],
)
Inheritance
Implemented types
Available extensions

Constructors

CustomAppBar({Key? key, String? title, Widget? titleWidget, TextStyle? titleStyle, Color? titleColor, double? titleFontSize, FontWeight? titleFontWeight, double? titleSpacing, bool? centerTitle, Widget? leading, IconData? leadingIcon, Color? leadingIconColor, double? leadingIconSize, VoidCallback? onLeadingPressed, bool? automaticallyImplyLeading, double? leadingWidth, List<Widget>? actions, IconThemeData? actionsIconTheme, EdgeInsetsGeometry? actionsPadding, Color? backgroundColor, Color? foregroundColor, Color? surfaceTintColor, Gradient? gradient, Color? shadowColor, double? elevation, double? scrolledUnderElevation, double? toolbarHeight, double? toolbarOpacity, ShapeBorder? shape, double? borderRadius, BorderSide? border, PreferredSizeWidget? bottom, Widget? flexibleSpace, SystemUiOverlayStyle? systemOverlayStyle, Brightness? brightness, bool? primary, bool? excludeHeaderSemantics, bool? forceMaterialTransparency, Clip? clipBehavior, bool? bottomSeparator, Color? bottomSeparatorColor, double? bottomSeparatorHeight})
const

Properties

actions List<Widget>?
Sağ taraftaki aksiyon widget listesi.
final
actionsIconTheme IconThemeData?
Action ikonları için tema.
final
actionsPadding EdgeInsetsGeometry?
Actions bölümü padding.
final
alignBottom Widget

Available on Widget, provided by the AlignmentExtensions extension

Widget'i alta hizalar
no setter
alignLeft Widget

Available on Widget, provided by the AlignmentExtensions extension

Widget'i sola hizalar
no setter
alignRight Widget

Available on Widget, provided by the AlignmentExtensions extension

Widget'i sağa hizalar
no setter
alignTop Widget

Available on Widget, provided by the AlignmentExtensions extension

Widget'i üste hizalar
no setter
automaticallyImplyLeading bool?
true ise leading otomatik gösterilir (back button vb.). Varsayılan: true.
final
backgroundColor Color?
Arka plan rengi.
final
border BorderSide?
Alt kenarlık çizgisi.
final
borderRadius double?
Alt köşe yuvarlaklığı. Kısayol — verilirse shape oluşturulur.
final
bottom PreferredSizeWidget?
AppBar altına eklenen widget (genelde TabBar).
final
bottomSeparator bool?
true ise AppBar altına ince bir ayırıcı çizgi eklenir.
final
bottomSeparatorColor Color?
Alt ayırıcı rengi.
final
bottomSeparatorHeight double?
Alt ayırıcı yüksekliği. Varsayılan: 1
final
brightness Brightness?
Status bar parlaklığı kısayolu. systemOverlayStyle yerine kullanılabilir.
final
center Widget

Available on Widget, provided by the AlignmentExtensions extension

Widget'i Center ile sarar
no setter
centerTitle bool?
Başlığı ortala. Varsayılan: platform bağımlı.
final
clipBehavior Clip?
Kırpma davranışı.
final
elevation double?
Normal elevation.
final
excludeHeaderSemantics bool?
Semantik header etiketini kaldır.
final
expandedHeight SizedBox

Available on Widget, provided by the SizeConstraintExtensions extension

Sonsuz yükseklik
no setter
expandedWidth SizedBox

Available on Widget, provided by the SizeConstraintExtensions extension

Sonsuz genişlik
no setter
flexibleSpace Widget?
Arka planda gösterilen flexible space widget'ı.
final
forceMaterialTransparency bool?
true ise AppBar tamamen şeffaf material olarak render edilir.
final
foregroundColor Color?
İkon ve metin rengi.
final
gradient Gradient?
Gradient arka plan. Verilirse backgroundColor yok sayılır.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading Widget?
Sol taraftaki özel widget. Verilirse leadingIcon yok sayılır.
final
leadingIcon IconData?
Leading ikonu. leading verilmezse bu ikon kullanılır.
final
leadingIconColor Color?
Leading ikon rengi.
final
leadingIconSize double?
Leading ikon boyutu.
final
leadingWidth double?
Leading widget genişliği.
final
onLeadingPressed VoidCallback?
Leading ikona tıklama. Verilmezse varsayılan Navigator.pop.
final
preferredSize Size
The size this widget would prefer if it were otherwise unconstrained.
no setteroverride
primary bool?
true ise AppBar üst padding'e (status bar) uyum sağlar. Varsayılan: true.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrolledUnderElevation double?
Scroll durumundaki elevation (Material 3).
final
shadowColor Color?
Gölge rengi.
final
shape ShapeBorder?
AppBar şekli (alt kısım yuvarlaklığı vb.).
final
surfaceTintColor Color?
Material 3 surface tint rengi. Colors.transparent ile kapatılabilir.
final
systemOverlayStyle SystemUiOverlayStyle?
Durum çubuğu stil ayarı (ikon rengi, arka plan vb.).
final
title String?
AppBar başlık metni. titleWidget verilirse yok sayılır.
final
titleColor Color?
Başlık metin rengi.
final
titleFontSize double?
Başlık yazı boyutu.
final
titleFontWeight FontWeight?
Başlık yazı kalınlığı.
final
titleSpacing double?
Başlık sol boşluğu (leading ile arasındaki mesafe).
final
titleStyle TextStyle?
Başlık metin stili. Verilirse titleColor, titleFontSize, titleFontWeight yok sayılır.
final
titleWidget Widget?
Özel başlık widget'ı. Verilirse title yok sayılır.
final
toolbarHeight double?
Toolbar yüksekliği. Varsayılan: kToolbarHeight (56).
final
toolbarOpacity double?
Toolbar opaklığı (0.0 – 1.0).
final

Methods

absorbPointer({bool absorbing = true}) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'ın dokunma olaylarını yutmasını sağlar.
align(Alignment alignment) Widget

Available on Widget, provided by the AlignmentExtensions extension

Custom alignment
asCard({double elevation = 2, Color? color, double radius = 12, EdgeInsetsGeometry? margin}) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'ı bir Card içine sarar.
asCircle({double? size, Color? backgroundColor, BoxBorder? border, List<BoxShadow>? shadow}) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'ı dairesel (circular) bir container içine yerleştirir.
asHero(Object tag) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'ı Hero animasyonu ile sarar.
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
clipOval() Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'ı oval / daire olarak kırpar.
clipRect({Clip clipBehavior = Clip.hardEdge}) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'ı dikdörtgen olarak kırpar.
clipRounded(double radius) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'ı yuvarlak köşeli dikdörtgen olarak kırpar.
constrained({double? minWidth, double? maxWidth, double? minHeight, double? maxHeight}) Widget

Available on Widget, provided by the SizeConstraintExtensions extension

ConstrainedBox ile min/max boyut
container({Key? key, AlignmentGeometry? alignment, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, double? width, double? height, BoxConstraints? constraints, Decoration? decoration, Color? color, Decoration? foregroundDecoration, double? borderRadius, BoxShape shape = BoxShape.rectangle, Gradient? gradient, BoxBorder? border, List<BoxShadow>? boxShadow, Matrix4? transform, Clip clipBehavior = Clip.none}) Widget

Available on Widget, provided by the ContainerExtensions extension

createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
expanded({int flex = 1}) Widget

Available on Widget, provided by the FlexExtensions extension

Widget'ı Expanded ile sarar.
flexible({int flex = 1, FlexFit fit = FlexFit.loose}) Widget

Available on Widget, provided by the FlexExtensions extension

Widget'ı Flexible ile sarar.
ignorePointer({bool ignoring = true}) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'ın dokunma olaylarını yok saymasını sağlar.
marginAll(double value) Widget

Available on Widget, provided by the PaddingExtensions extension

Tüm kenarlara eşit margin
marginHorizontal(double value) Widget

Available on Widget, provided by the PaddingExtensions extension

Sadece yatay margin
marginOnly({double left = 0, double top = 0, double right = 0, double bottom = 0}) Widget

Available on Widget, provided by the PaddingExtensions extension

Custom margin
marginVertical(double value) Widget

Available on Widget, provided by the PaddingExtensions extension

Sadece dikey margin
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onInkTap(VoidCallback onTap, {BorderRadius? borderRadius, Color? splashColor, Color? highlightColor}) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'a InkWell (Material ripple) efekti ekler.
onLongPress(VoidCallback onLongPress) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'a uzun basma davranışı ekler.
onTap(VoidCallback onTap, {BorderRadius? borderRadius, HitTestBehavior behavior = HitTestBehavior.opaque}) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'a dokunma (tap) davranışı ekler.
padding(EdgeInsets insets) Widget

Available on Widget, provided by the PaddingExtensions extension

EdgeInsets ile padding
paddingAll(double value) Widget

Available on Widget, provided by the PaddingExtensions extension

Tüm kenarlara eşit padding
paddingHorizontal(double value) Widget

Available on Widget, provided by the PaddingExtensions extension

Sadece yatay padding
paddingOnly({double left = 0, double top = 0, double right = 0, double bottom = 0}) Widget

Available on Widget, provided by the PaddingExtensions extension

Custom padding
paddingSymmetric({double h = 0, double v = 0}) Widget

Available on Widget, provided by the PaddingExtensions extension

Simetrik padding
paddingVertical(double value) Widget

Available on Widget, provided by the PaddingExtensions extension

Sadece dikey padding
rotated(double angle, {Alignment alignment = Alignment.center}) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'ı belirtilen açıyla döndürür.
roundedBox({double? radius, Color? backgroundColor, Gradient? gradient, Border? border, List<BoxShadow>? shadow, EdgeInsetsGeometry? innerPadding, EdgeInsetsGeometry? outerMargin, double? width, double? height, AlignmentGeometry? alignment, Clip clipBehavior = Clip.antiAlias}) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'ı yuvarlak / rounded bir kutu içine sarar.
safeArea({bool top = true, bool bottom = true, bool left = true, bool right = true}) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'ı SafeArea ile sarar.
scaled(double scale, {Alignment alignment = Alignment.center}) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'ı X ve Y ekseninde ölçekler.
sized({double? height, double? width}) SizedBox

Available on Widget, provided by the SizeConstraintExtensions extension

Custom boyut verir
square(double size) SizedBox

Available on Widget, provided by the SizeConstraintExtensions extension

Kare boyut verir
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited
translated(Offset offset) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'ı X ve Y ekseninde kaydırır.
withAspectRatio(double ratio) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'ı belirtilen en-boy oranıyla kısıtlar.
withBackground(Color color, {double radius = 0, EdgeInsetsGeometry? innerPadding, EdgeInsetsGeometry? outerMargin}) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'a arka plan rengi uygular.
withBorder({Color color = const Color(0xFFE0E0E0), double width = 1, double radius = 0}) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'a kenarlık çizer.
withOpacity(double opacity, {bool alwaysIncludeSemantics = false}) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'ın opaklığını ayarlar.
withShadow({Color color = const Color(0x1A000000), double blurRadius = 8, Offset offset = const Offset(0, 2), double spreadRadius = 0, double borderRadius = 0}) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'a kutu gölgesi ekler.
withTooltip(String message) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'a tooltip ekler.
withVisibility(bool visible, {bool maintainSize = false}) Widget

Available on Widget, provided by the WidgetDecorationExtensions extension

Widget'ın görünürlüğünü kontrol eder.

Operators

operator ==(Object other) bool
The equality operator.
inherited