FlenxStoreShell class

Raiz de uma página de loja (marketplace de moda). Injeta o CSS do kit de e-commerce e desenha o cabeçalho (logo, CEP, busca, conta/desejos/carrinho), a barra de categorias, a faixa de cupom e o rodapé. O miolo vem em children (hero, pílulas, prateleiras, grade...). O app só passa Dart.

Inheritance

Constructors

FlenxStoreShell({required String brand, required List<MenuLink> categories, List<Component> children = const [], String searchPlaceholder = 'O que você procura hoje?', String searchAction = '/produtos', String? cep, String accountHref = '/conta', String accountLabel = 'Entrar', String wishlistHref = '/produtos', String cartHref = '/carrinho', int cartCount = 0, String? promo, List<FlenxFooterColumn> footerColumns = const [], List<String> payments = const [], String? copyright, Key? key})
const

Properties

accountHref → String
final
accountLabel → String
final
brand → String
final
cartCount → int
final
cartHref → String
final
categories → List<MenuLink>
final
cep → String?
final
children → List<Component>
final
final
footerColumns → List<FlenxFooterColumn>
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one component replaces another component in the tree.
finalinherited
payments → List<String>
final
promo → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
searchAction → String
final
searchPlaceholder → String
final
wishlistHref → String
final

Methods

build(BuildContext context) → Component
Describes the part of the user interface represented by this component.
override
createElement() → Element
Creates a StatelessElement to manage this component's location in the tree.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant Component newComponent) → bool
Implement this method to determine whether a rebuild can be skipped.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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