userpilot_flutter 1.0.0
userpilot_flutter: ^1.0.0 copied to clipboard
Plugin package to bridge the native Userpilot SDKs in a Flutter application.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'src/features/app.dart';
/// Entry point of the app.
void main() {
// Set the system UI overlay style for better visual consistency
_setSystemUIOverlayStyle();
// Run the UserpilotApp widget, the main application
runApp(const UserpilotApp());
}
/// Sets the system UI overlay style, specifically customizing the status bar appearance.
void _setSystemUIOverlayStyle() {
SystemChrome.setSystemUIOverlayStyle(
const SystemUiOverlayStyle(
statusBarIconBrightness: Brightness.dark, // Set dark icons on the status bar
statusBarColor: Colors.transparent, // Makes the status bar background transparent
),
);
}