1234567891011121314151617181920212223242526272829303132333435 |
- import 'package:flutter/material.dart';
- /// Copyright © 2014-2023 PDF Technologies, Inc. All Rights Reserved.
- ///
- /// THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
- /// AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
- /// UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
- /// This notice may not be removed from this file.
- class CPDFToolbar extends AppBar {
- final VoidCallback? onPressed;
- final Widget? leadingIcon;
- CPDFToolbar(
- {super.key,
- super.title,
- super.actions,
- super.backgroundColor,
- this.leadingIcon,
- super.bottom,
- this.onPressed})
- : super(
- leading: leadingIcon != null
- ? IconButton(
- onPressed: onPressed,
- icon: leadingIcon,
- splashRadius: 24,
- )
- : null,
- elevation: 2,
- titleSpacing: title == null ? 15 : 0,
- );
- }
|