// ignore_for_file: unnecessary_const import 'package:flutter/material.dart'; import 'package:syncrow_app/features/shared_widgets/default_container.dart'; import 'package:syncrow_app/features/shared_widgets/default_scaffold.dart'; import 'package:syncrow_app/features/shared_widgets/text_widgets/body_large.dart'; import 'package:syncrow_app/features/shared_widgets/text_widgets/body_medium.dart'; import 'package:syncrow_app/features/shared_widgets/text_widgets/body_small.dart'; import 'package:syncrow_app/utils/context_extension.dart'; import 'package:syncrow_app/utils/resource_manager/color_manager.dart'; class CreateHomeView extends StatelessWidget { const CreateHomeView({super.key}); @override Widget build(BuildContext context) { return DefaultScaffold( actions: [ TextButton( onPressed: () {}, child: const BodyLarge( text: 'Save', fontWeight: FontWeight.bold, ), ), ], title: 'Create Home', child: Column( children: [ //Home Info DefaultContainer( padding: const EdgeInsets.symmetric( horizontal: 25, vertical: 5, ), child: Column( mainAxisSize: MainAxisSize.min, mainAxisAlignment: MainAxisAlignment.start, children: [ Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ const BodyMedium(text: 'Home Name '), Flexible( child: TextField( textAlign: TextAlign.end, decoration: InputDecoration( hintText: 'Enter Name', hintStyle: context.bodyMedium.copyWith(color: Colors.grey), border: InputBorder.none, ), ), ), ], ), //Divider Container( height: 1, color: ColorsManager.greyColor, ), Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ const BodyMedium(text: 'Location '), Flexible( child: TextField( textAlign: TextAlign.end, decoration: InputDecoration( hintText: 'Set', hintStyle: context.bodyMedium.copyWith(color: Colors.grey), border: InputBorder.none, ), ), ), ], ), ], ), ), //Rooms Info const SizedBox(height: 10), const Row( children: [ SizedBox( width: 25, ), BodySmall( text: 'Rooms', fontWeight: FontWeight.bold, ), ], ), DefaultContainer( padding: const EdgeInsets.symmetric( horizontal: 25, vertical: 5, ), child: Column( mainAxisSize: MainAxisSize.min, mainAxisAlignment: MainAxisAlignment.start, children: [ TextButton( onPressed: () { //TODO add room }, child: const Row( mainAxisAlignment: MainAxisAlignment.start, children: [ BodyMedium( text: 'Add Room', fontColor: ColorsManager.primaryColor, ), ], )) ], ), ), ], ), ); } }