Add connection info footer
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:dartx/dartx.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hiddify/core/app_info/app_info_provider.dart';
|
||||
@@ -9,6 +11,7 @@ import 'package:hiddify/features/home/widget/connection_button.dart';
|
||||
import 'package:hiddify/features/home/widget/empty_profiles_home_body.dart';
|
||||
import 'package:hiddify/features/profile/notifier/active_profile_notifier.dart';
|
||||
import 'package:hiddify/features/profile/widget/profile_tile.dart';
|
||||
import 'package:hiddify/features/proxy/active/active_proxy_footer.dart';
|
||||
import 'package:hiddify/utils/utils.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:sliver_tools/sliver_tools.dart';
|
||||
@@ -53,16 +56,14 @@ class HomePage extends HookConsumerWidget {
|
||||
AsyncData(value: final profile?) => MultiSliver(
|
||||
children: [
|
||||
ProfileTile(profile: profile, isMain: true),
|
||||
const SliverFillRemaining(
|
||||
SliverFillRemaining(
|
||||
hasScrollBody: false,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(
|
||||
left: 8,
|
||||
right: 8,
|
||||
top: 8,
|
||||
bottom: 86,
|
||||
),
|
||||
child: ConnectionButton(),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
const Expanded(child: ConnectionButton()),
|
||||
if (Platform.isAndroid) const ActiveProxyFooter(),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user