-
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ee9c40
commit 5e698b2
Showing
4 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:maid/providers/app_data.dart'; | ||
import 'package:maid/providers/app_preferences.dart'; | ||
import 'package:maid/providers/user.dart'; | ||
import 'package:maid/static/logger.dart'; | ||
import 'package:provider/provider.dart'; | ||
|
||
class LogPanel extends StatelessWidget { | ||
const LogPanel({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
body: Consumer3<AppData, AppPreferences, User>( | ||
builder: buildLog, | ||
), | ||
); | ||
} | ||
|
||
Widget buildLog(BuildContext context, AppData appData, AppPreferences appPreferences, User user, Widget? child) { | ||
return Container( | ||
padding: const EdgeInsets.all(8.0), | ||
color: Colors.black, | ||
child: SelectableText( | ||
Logger.getLog, | ||
style: const TextStyle( | ||
color: Colors.white, | ||
fontFamily: 'monospace', | ||
), | ||
) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters