flutter_telegram_miniapp library

Classes

Accelerometer
AccelerometerStartParams
BackButton
This object controls the back button, which can be displayed in the header of the Mini App in the Telegram interface.
BiometricAuthenticateParams
BiometricManager
BiometricRequestAccessParams
CloudStorage
This object controls the cloud storage. Each bot can store up to 1024 items per user in the cloud storage.
ContentSafeAreaInsert
This object represents the content-defined safe area insets, providing padding values to ensure content remains within visible boundaries, avoiding overlap with Telegram UI elements.
DeviceOrientation
DeviceOrientationStartParams
DownloadFileParams
This object describes the parameters for the file download request.
EmojiStatusParams
This object describes additional settings for setting an emoji status.
Gyroscope
GyroscopeStartParams
HapticFeedback
This object controls haptic feedback.
LocationData
LocationManager
MainButton
PopupButton
This object describes the native popup button.
PopupParams
This object describes the native popup.
SafeAreaInsert
This object represents the system-defined safe area insets, providing padding values to ensure content remains within visible boundaries, avoiding overlap with system UI elements like notches or navigation bars.
ScanQrPopupParams
This object describes the native popup for scanning QR codes.
SecondaryButton
SettingsButton
This object controls the Settings item in the context menu of the Mini App in the Telegram interface.
StoryShareParams
This object describes additional sharing settings for the native story editor.
This object describes a widget link to be included in the story.
ThemeParams
Mini Apps can adjust the appearance of the interface to match the Telegram user's app in real time. This object contains the user's current theme settings:
WebApp
WebAppChat
WebAppInitData
WebAppUser

Constants

webAppPath → const String

Functions

fromHex(String hexString) Color
String is in the format "aabbcc" or "ffaabbcc" with an optional leading "#".
toHex(Color color, {bool leadingHashSign = true}) String
Prefixes a hash sign if leadingHashSign is set to true (default is true).