title: How to create alert dialog with text field using GetX in flutter
body: <p>I am able to create popup dialogs using <strong>Get.defaultDialog()</strong> function. I could not find a method in GetX for creating custom alert dialogs.</p>
  <p>I am using the function below to achieve that which uses native flutter showDialog api.</p>
  <pre><code>showDialog(
          context: context,
          builder: (context) {
            return AlertDialog(
                content: Column(
                  mainAxisSize: MainAxisSize.min,
                  children: [
                    TextField(
                      controller: categoryNameController,
                      keyboardType: TextInputType.text,
                      maxLines: 1,
                      decoration: InputDecoration(
                          labelText: 'Category Name',
                          hintMaxLines: 1,
                          border: OutlineInputBorder(
                              borderSide:
                                  BorderSide(color: Colors.green, width: 4.0))),
                    ),
                    SizedBox(
                      height: 30.0,
                    ),
                    RaisedButton(
                      onPressed: () {
                        if (categoryNameController.text.isNotEmpty) {
                          var expenseCategory = ExpenseCategory(
                              categoryNameController.text,
                              id: _addExpenseController.expenseCategories.length);
                          _expenseController.addExpenseCategory(expenseCategory);
                          _addExpenseController.expenseCategories
                              .add(expenseCategory);
                          Get.back();
                        }
                      },
                      child: Text(
                        'ADD CATEGORY',
                        style: TextStyle(color: Colors.white, fontSize: 16.0),
                      ),
                      color: Colors.redAccent,
                    )
                  ],
                ),
                elevation: 12.0,
                shape: RoundedRectangleBorder(
                    borderRadius: BorderRadius.circular(10.0)));
          });
  </code></pre>