Last updated:
0 purchases
flutter fluent logger
fluent_logger #
Package that allows you to print different types of messages in console
Getting Started #
Add dependencies #
flutter_fluent_logger: ^0.0.5
copied to clipboard
Build module #
void main() async {
await Fluent.build([
LoggerModule(),
]);
runApp(const MainApp());
}
copied to clipboard
Use it #
class App extends StatelessWidget {
const App({super.key});
@override
Widget build(BuildContext context) {
// Print debug message in console
Fluent.get<LoggerApi>().logDebug("Hello from Fluent Logger");
return MaterialApp(
title: 'Fluent Logger Demo',
home: Scaffold(
body: Center(
child: Text("Hello World!"),
),
),
);
}
}
copied to clipboard
Example #
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.