mirrored_repositories/lifeclass/lib/pages/content/lessons
import 'package:flutter/material.dart';
import 'package:lifeclass/classes/Themes.dart';

class MultiInputField extends StatelessWidget {
  final TextEditingController controller;
  final String colorTheme;
  final String hint;
  final int maxLines;
  final double fontSize;
  const MultiInputField({super.key,required this.controller, required this.hint,required this.maxLines, required this.colorTheme,required this.fontSize});

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: EdgeInsets.symmetric(horizontal: 10.0),
      child: Row(
        children: [
          Expanded(
            child: TextField(
              keyboardType: TextInputType.multiline,
              maxLines: maxLines,
              controller: controller,
              cursorColor: myThemes.getColor(colorTheme),
              decoration: InputDecoration(
                border: OutlineInputBorder(borderRadius: BorderRadius.circular(30)),
                focusedBorder: OutlineInputBorder( borderRadius: BorderRadius.circular(30),borderSide: BorderSide(color: myThemes.getColor(colorTheme),width: 3)),
                hintText: hint,
              ),
              style: TextStyle(fontSize: fontSize),
            ),
          )
        ],
      ),
    );
  }
}
