mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-09-07 19:46:06 +00:00
More style fixes
This commit is contained in:
parent
8e33097cff
commit
5b3755080c
1 changed files with 26 additions and 24 deletions
|
@ -1,7 +1,6 @@
|
|||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';
|
||||
import 'package:mobile_nebula/components/SimplePage.dart';
|
||||
import 'package:mobile_nebula/services/utils.dart';
|
||||
import '../../oss_licenses.dart';
|
||||
|
||||
|
@ -14,10 +13,11 @@ class LicensesScreen extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SimplePage(
|
||||
title: const Text("Licences"),
|
||||
scrollable: SimpleScrollable.none,
|
||||
child: ListView.builder(
|
||||
return PlatformScaffold(
|
||||
appBar: PlatformAppBar(
|
||||
title: Text("Licences"),
|
||||
),
|
||||
body: ListView.builder(
|
||||
itemCount: allDependencies.length,
|
||||
itemBuilder: (_, index) {
|
||||
var dep = allDependencies[index];
|
||||
|
@ -25,7 +25,6 @@ class LicensesScreen extends StatelessWidget {
|
|||
padding: const EdgeInsets.all(8),
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Utils.configItemBackground(context),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
),
|
||||
child: PlatformListTile(
|
||||
|
@ -42,8 +41,7 @@ class LicensesScreen extends StatelessWidget {
|
|||
capitalize(dep.name),
|
||||
),
|
||||
subtitle: Text(dep.description),
|
||||
trailing: Icon(context.platformIcons.forward,
|
||||
color: CupertinoColors.placeholderText.resolveFrom(context), size: 18)),
|
||||
trailing: Icon(context.platformIcons.forward, size: 18)),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
@ -59,22 +57,26 @@ class LicenceDetailPage extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SimplePage(
|
||||
title: Text(title),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(5),
|
||||
decoration: BoxDecoration(color: Utils.configItemBackground(context), borderRadius: BorderRadius.circular(8)),
|
||||
child: SingleChildScrollView(
|
||||
physics: const BouncingScrollPhysics(),
|
||||
child: Column(
|
||||
children: [
|
||||
Text(
|
||||
licence,
|
||||
style: const TextStyle(fontSize: 15),
|
||||
),
|
||||
],
|
||||
return PlatformScaffold(
|
||||
appBar: PlatformAppBar(
|
||||
title: Text(title),
|
||||
),
|
||||
body: SafeArea(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(5),
|
||||
decoration: BoxDecoration(borderRadius: BorderRadius.circular(8)),
|
||||
child: SingleChildScrollView(
|
||||
physics: const BouncingScrollPhysics(),
|
||||
child: Column(
|
||||
children: [
|
||||
Text(
|
||||
licence,
|
||||
style: const TextStyle(fontSize: 15),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Add table
Reference in a new issue