mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-21 06:19:10 +00:00
Dynamic column width splitview
This commit is contained in:
parent
b8d2ee9e0d
commit
dafff9b242
5 changed files with 14 additions and 11 deletions
|
@ -219,7 +219,6 @@ class _AddedListState extends State<AddedList> {
|
||||||
: null,
|
: null,
|
||||||
loadingGenerator: () => SizedBox(
|
loadingGenerator: () => SizedBox(
|
||||||
width: double.maxFinite,
|
width: double.maxFinite,
|
||||||
height: MediaQuery.of(context).size.height-171,
|
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
@ -251,12 +250,15 @@ class _AddedListState extends State<AddedList> {
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Padding(
|
||||||
AppLocalizations.of(context)!.noClientsList,
|
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||||
textAlign: TextAlign.center,
|
child: Text(
|
||||||
style: TextStyle(
|
AppLocalizations.of(context)!.noClientsList,
|
||||||
fontSize: 24,
|
textAlign: TextAlign.center,
|
||||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
style: TextStyle(
|
||||||
|
fontSize: 24,
|
||||||
|
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 30),
|
const SizedBox(height: 30),
|
||||||
|
@ -270,7 +272,6 @@ class _AddedListState extends State<AddedList> {
|
||||||
),
|
),
|
||||||
errorGenerator: () => SizedBox(
|
errorGenerator: () => SizedBox(
|
||||||
width: double.maxFinite,
|
width: double.maxFinite,
|
||||||
height: MediaQuery.of(context).size.height-171,
|
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
|
|
@ -173,6 +173,7 @@ class _ClientsWidgetState extends State<ClientsWidget> with TickerProviderStateM
|
||||||
if (width > 900) {
|
if (width > 900) {
|
||||||
return SplitView.material(
|
return SplitView.material(
|
||||||
hideDivider: true,
|
hideDivider: true,
|
||||||
|
flexWidth: const FlexWidth(mainViewFlexWidth: 1, secondaryViewFlexWidth: 2),
|
||||||
placeholder: Center(
|
placeholder: Center(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(24),
|
padding: const EdgeInsets.all(24),
|
||||||
|
|
|
@ -40,6 +40,7 @@ class Settings extends StatelessWidget {
|
||||||
if (width > 900) {
|
if (width > 900) {
|
||||||
return SplitView.material(
|
return SplitView.material(
|
||||||
hideDivider: true,
|
hideDivider: true,
|
||||||
|
flexWidth: const FlexWidth(mainViewFlexWidth: 1, secondaryViewFlexWidth: 2),
|
||||||
placeholder: Center(
|
placeholder: Center(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(24),
|
padding: const EdgeInsets.all(24),
|
||||||
|
|
|
@ -295,8 +295,8 @@ packages:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: hide-divider
|
ref: master-alt
|
||||||
resolved-ref: e22dd0bf64e7d61a64eb99fcd9a4e111e177ccf3
|
resolved-ref: a6aa2419243cc0abccf9474ce340790d6c0ded6f
|
||||||
url: "https://github.com/JGeek00/flutter_split_view"
|
url: "https://github.com/JGeek00/flutter_split_view"
|
||||||
source: git
|
source: git
|
||||||
version: "0.1.2"
|
version: "0.1.2"
|
||||||
|
|
|
@ -63,7 +63,7 @@ dependencies:
|
||||||
flutter_split_view:
|
flutter_split_view:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/JGeek00/flutter_split_view
|
url: https://github.com/JGeek00/flutter_split_view
|
||||||
ref: hide-divider
|
ref: master-alt
|
||||||
url_launcher: ^6.1.10
|
url_launcher: ^6.1.10
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
|
|
Loading…
Add table
Reference in a new issue