mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-16 18:16:34 +00:00
added focused border
This commit is contained in:
@ -67,12 +67,9 @@ class CreateCommunityDialog extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
isEditMode ? 'Edit Community Name' : 'Community Name',
|
isEditMode ? 'Edit Community Name' : 'Community Name',
|
||||||
style: const TextStyle(
|
style: Theme.of(context).textTheme.headlineMedium,
|
||||||
fontSize: 20,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
),
|
),
|
||||||
),
|
const SizedBox(height: 18),
|
||||||
const SizedBox(height: 16),
|
|
||||||
TextField(
|
TextField(
|
||||||
controller: nameController,
|
controller: nameController,
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
@ -87,7 +84,7 @@ class CreateCommunityDialog extends StatelessWidget {
|
|||||||
hintText: 'Please enter the community name',
|
hintText: 'Please enter the community name',
|
||||||
filled: true,
|
filled: true,
|
||||||
fillColor: ColorsManager.boxColor,
|
fillColor: ColorsManager.boxColor,
|
||||||
border: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: isNameValid && !isNameEmpty
|
color: isNameValid && !isNameEmpty
|
||||||
? ColorsManager.boxColor
|
? ColorsManager.boxColor
|
||||||
@ -96,6 +93,13 @@ class CreateCommunityDialog extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
borderRadius: BorderRadius.circular(10),
|
borderRadius: BorderRadius.circular(10),
|
||||||
),
|
),
|
||||||
|
focusedBorder: OutlineInputBorder(
|
||||||
|
borderRadius: BorderRadius.circular(10),
|
||||||
|
borderSide: const BorderSide(
|
||||||
|
color: ColorsManager.boxColor,
|
||||||
|
width: 1.5,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (!isNameValid)
|
if (!isNameValid)
|
||||||
|
Reference in New Issue
Block a user