Compare commits

..

No commits in common. "af1c5829844930d5ec0c5f4639b3a094196ed58f" and "126ed2f4b048419ade43132bb87d2b589d956a17" have entirely different histories.

3 changed files with 27 additions and 35 deletions

View file

@ -29,7 +29,7 @@ class ConfigItem extends StatelessWidget {
return Container( return Container(
color: Utils.configItemBackground(context), color: Utils.configItemBackground(context),
padding: EdgeInsets.only(top: 10, bottom: 10, left: 15, right: 20), padding: EdgeInsets.only(top: 2, bottom: 2, left: 15, right: 20),
constraints: BoxConstraints(minHeight: Utils.minInteractiveSize), constraints: BoxConstraints(minHeight: Utils.minInteractiveSize),
child: Row( child: Row(
crossAxisAlignment: crossAxisAlignment, crossAxisAlignment: crossAxisAlignment,

View file

@ -10,6 +10,7 @@ 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 {

View file

@ -105,42 +105,33 @@ 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 PlatformWidgetBuilder( return Container(
child: Row( decoration: BoxDecoration(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, border: Border(top: borderSide),
spacing: 8, ),
children: <Widget>[ child: Row(mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[
Tooltip( Expanded(child: Builder(builder: (BuildContext context) {
message: "Share logs", return PlatformIconButton(
child: PlatformIconButton( padding: padding,
icon: Icon(context.platformIcons.share), icon: Icon(context.platformIcons.share, size: 30),
onPressed: () { onPressed: () {
Share.shareFile(context, Share.shareFile(context,
title: '${widget.site.name} logs', title: '${widget.site.name} logs',
filePath: widget.site.logFile, filePath: widget.site.logFile,
filename: '${widget.site.name}.log'); filename: '${widget.site.name}.log');
}, },
), );
), })),
Tooltip( Expanded(
message: 'Go to latest',
child: PlatformIconButton( child: PlatformIconButton(
icon: Icon(context.platformIcons.downArrow), padding: padding,
icon: Icon(context.platformIcons.downArrow, size: 30),
onPressed: () async { onPressed: () async {
controller.animateTo(controller.position.maxScrollExtent, controller.animateTo(controller.position.maxScrollExtent,
duration: const Duration(milliseconds: 500), curve: Curves.linearToEaseOut); duration: const Duration(milliseconds: 500), curve: Curves.linearToEaseOut);
}, },
), )),
), ]));
],
),
cupertino: (context, child, platform) => Container(
decoration: BoxDecoration(
border: Border(top: borderSide),
),
padding: padding,
child: child),
material: (context, child, platform) => BottomAppBar(child: child));
} }
loadLogs() async { loadLogs() async {