EditLanguageTabBar class

Inheritance

Constructors

EditLanguageTabBar({required DidProductChanged productEquality, required ProductLanguagesProvider productLanguages, required void onTabChanged(OpenFoodFactsLanguage language), required bool forceUserLanguage, Key? key, OpenFoodFactsLanguageState defaultLanguageMissingState = OpenFoodFactsLanguageState.warning, OpenFoodFactsLanguageState mainLanguageMissingState = OpenFoodFactsLanguageState.warning, OpenFoodFactsLanguageState? userLanguageMissingState, Widget? languageIndicatorNormal, Widget? languageIndicatorWarning, Widget? languageIndicatorError, bool showLanguageIndicator = true, EdgeInsetsGeometry padding = const EdgeInsetsDirectional.only(start: 55.0)})
const
EditLanguageTabBar.noIndicator({required DidProductChanged productEquality, required ProductLanguagesProvider productLanguages, required void onTabChanged(OpenFoodFactsLanguage language), required bool forceUserLanguage, Key? key, EdgeInsetsGeometry padding = const EdgeInsetsDirectional.only(start: 55.0)})
const

Properties

defaultLanguageMissingState → OpenFoodFactsLanguageState
When a language is added (= incomplete), how should it be considered?
final
forceUserLanguage → bool
Force the user language even if it is not in the list
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
languageIndicatorError → Widget?
final
languageIndicatorNormal → Widget?
final
languageIndicatorWarning → Widget?
final
mainLanguageMissingState → OpenFoodFactsLanguageState
When the main language is missing, how should it be displayed (normal/error/warning)
final
onTabChanged → void Function(OpenFoodFactsLanguage language)
final
padding → EdgeInsetsGeometry
final
productEquality → DidProductChanged
Compare two products to know if they are the same
final
productLanguages → ProductLanguagesProvider
Return all languages of a product (eg: a gallery may return all languages of its images)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showLanguageIndicator → bool
Show an indicator next to the language only if languageIndicatorNormal, languageIndicatorWarning or languageIndicatorError are not null
final
userLanguageMissingState → OpenFoodFactsLanguageState?
When the user language is missing, how should it be displayed (normal/error/warning)
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<EditLanguageTabBar>
Creates the mutable state for this widget at a given location in the tree.
override
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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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

Operators

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

Constants

PREFERRED_SIZE → const Size