mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
push basic layouts and shared widgets
This commit is contained in:
@ -1,9 +1,11 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:syncrow_web/core/extension/build_context_x.dart';
|
||||
import 'package:syncrow_web/pages/common/buttons/search_reset_buttons.dart';
|
||||
import 'package:syncrow_web/pages/common/filter/filter_widget.dart';
|
||||
import 'package:syncrow_web/utils/style.dart';
|
||||
import 'package:syncrow_web/pages/common/text_field/custom_text_field.dart';
|
||||
import 'package:syncrow_web/utils/helpers/responsice_layout_helper/responsive_layout_helper.dart';
|
||||
|
||||
class DeviceManagementBody extends StatelessWidget {
|
||||
class DeviceManagementBody extends StatelessWidget with HelperResponsiveLayout {
|
||||
const DeviceManagementBody({super.key});
|
||||
|
||||
@override
|
||||
@ -24,32 +26,60 @@ class DeviceManagementBody extends StatelessWidget {
|
||||
const SizedBox(
|
||||
height: 20,
|
||||
),
|
||||
Wrap(
|
||||
children: [
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'Community',
|
||||
style: context.textTheme.bodyMedium!.copyWith(
|
||||
fontWeight: FontWeight.w400,
|
||||
color: const Color(0xff000000)),
|
||||
),
|
||||
Container(
|
||||
width: context.screenWidth * 0.15,
|
||||
margin: const EdgeInsets.only(top: 8),
|
||||
decoration: containerDecoration,
|
||||
child: TextFormField(
|
||||
//: accessBloc.passwordName,
|
||||
style: const TextStyle(color: Colors.black),
|
||||
decoration: textBoxDecoration()!
|
||||
.copyWith(hintText: 'Please enter'),
|
||||
)),
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
||||
if (isLargeScreenSize(context)) ...[
|
||||
Row(
|
||||
children: [
|
||||
const StatefulTextField(
|
||||
title: "Community",
|
||||
width: 200,
|
||||
elevation: 2,
|
||||
),
|
||||
const SizedBox(width: 20),
|
||||
const StatefulTextField(
|
||||
title: "Unit Name",
|
||||
width: 200,
|
||||
elevation: 2,
|
||||
),
|
||||
const SizedBox(width: 20),
|
||||
const StatefulTextField(
|
||||
title: "Device Name / Product Name",
|
||||
width: 300,
|
||||
elevation: 2,
|
||||
),
|
||||
const SizedBox(width: 20),
|
||||
SearchResetButtons(
|
||||
onSearch: () {},
|
||||
onReset: () {},
|
||||
),
|
||||
],
|
||||
),
|
||||
] else ...[
|
||||
Wrap(
|
||||
spacing: 20,
|
||||
runSpacing: 10,
|
||||
children: [
|
||||
const StatefulTextField(
|
||||
title: "Community",
|
||||
width: 200,
|
||||
elevation: 2,
|
||||
),
|
||||
const StatefulTextField(
|
||||
title: "Unit Name",
|
||||
width: 200,
|
||||
elevation: 2,
|
||||
),
|
||||
const StatefulTextField(
|
||||
title: "Device Name / Product Name",
|
||||
width: 300,
|
||||
elevation: 2,
|
||||
),
|
||||
SearchResetButtons(
|
||||
onSearch: () {},
|
||||
onReset: () {},
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
);
|
||||
|
Reference in New Issue
Block a user