mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-09-07 19:46:06 +00:00
Compare commits
2 commits
126ed2f4b0
...
af1c582984
Author | SHA1 | Date | |
---|---|---|---|
|
af1c582984 | ||
|
f3d22a83cf |
3 changed files with 35 additions and 27 deletions
|
@ -29,7 +29,7 @@ class ConfigItem extends StatelessWidget {
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
color: Utils.configItemBackground(context),
|
color: Utils.configItemBackground(context),
|
||||||
padding: EdgeInsets.only(top: 2, bottom: 2, left: 15, right: 20),
|
padding: EdgeInsets.only(top: 10, bottom: 10, left: 15, right: 20),
|
||||||
constraints: BoxConstraints(minHeight: Utils.minInteractiveSize),
|
constraints: BoxConstraints(minHeight: Utils.minInteractiveSize),
|
||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: crossAxisAlignment,
|
crossAxisAlignment: crossAxisAlignment,
|
||||||
|
|
|
@ -10,7 +10,6 @@ import 'package:mobile_nebula/components/SimplePage.dart';
|
||||||
import 'package:mobile_nebula/components/buttons/PrimaryButton.dart';
|
import 'package:mobile_nebula/components/buttons/PrimaryButton.dart';
|
||||||
import 'package:url_launcher/url_launcher.dart';
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
import '../components/config/ConfigItem.dart';
|
|
||||||
import '../components/config/ConfigSection.dart';
|
import '../components/config/ConfigSection.dart';
|
||||||
|
|
||||||
class EnrollmentScreen extends StatefulWidget {
|
class EnrollmentScreen extends StatefulWidget {
|
||||||
|
|
|
@ -105,33 +105,42 @@ class _SiteLogsScreenState extends State<SiteLogsScreen> {
|
||||||
|
|
||||||
var padding = Platform.isAndroid ? EdgeInsets.fromLTRB(0, 20, 0, 30) : EdgeInsets.all(10);
|
var padding = Platform.isAndroid ? EdgeInsets.fromLTRB(0, 20, 0, 30) : EdgeInsets.all(10);
|
||||||
|
|
||||||
return Container(
|
return PlatformWidgetBuilder(
|
||||||
decoration: BoxDecoration(
|
child: Row(
|
||||||
border: Border(top: borderSide),
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
),
|
spacing: 8,
|
||||||
child: Row(mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[
|
children: <Widget>[
|
||||||
Expanded(child: Builder(builder: (BuildContext context) {
|
Tooltip(
|
||||||
return PlatformIconButton(
|
message: "Share logs",
|
||||||
padding: padding,
|
|
||||||
icon: Icon(context.platformIcons.share, size: 30),
|
|
||||||
onPressed: () {
|
|
||||||
Share.shareFile(context,
|
|
||||||
title: '${widget.site.name} logs',
|
|
||||||
filePath: widget.site.logFile,
|
|
||||||
filename: '${widget.site.name}.log');
|
|
||||||
},
|
|
||||||
);
|
|
||||||
})),
|
|
||||||
Expanded(
|
|
||||||
child: PlatformIconButton(
|
child: PlatformIconButton(
|
||||||
|
icon: Icon(context.platformIcons.share),
|
||||||
|
onPressed: () {
|
||||||
|
Share.shareFile(context,
|
||||||
|
title: '${widget.site.name} logs',
|
||||||
|
filePath: widget.site.logFile,
|
||||||
|
filename: '${widget.site.name}.log');
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Tooltip(
|
||||||
|
message: 'Go to latest',
|
||||||
|
child: PlatformIconButton(
|
||||||
|
icon: Icon(context.platformIcons.downArrow),
|
||||||
|
onPressed: () async {
|
||||||
|
controller.animateTo(controller.position.maxScrollExtent,
|
||||||
|
duration: const Duration(milliseconds: 500), curve: Curves.linearToEaseOut);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
cupertino: (context, child, platform) => Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
border: Border(top: borderSide),
|
||||||
|
),
|
||||||
padding: padding,
|
padding: padding,
|
||||||
icon: Icon(context.platformIcons.downArrow, size: 30),
|
child: child),
|
||||||
onPressed: () async {
|
material: (context, child, platform) => BottomAppBar(child: child));
|
||||||
controller.animateTo(controller.position.maxScrollExtent,
|
|
||||||
duration: const Duration(milliseconds: 500), curve: Curves.linearToEaseOut);
|
|
||||||
},
|
|
||||||
)),
|
|
||||||
]));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
loadLogs() async {
|
loadLogs() async {
|
||||||
|
|
Loading…
Add table
Reference in a new issue