Skip to content

Instantly share code, notes, and snippets.

View NiranjanShah's full-sized avatar

Niranjan G Mandan NiranjanShah

View GitHub Profile
@NiranjanShah
NiranjanShah / outlined_input_border.dart
Created June 10, 2024 07:44 — forked from Vanchel/outlined_input_border.dart
Border with label placed inside (Flutter 3.22)
import 'package:flutter/material.dart';
class OutlinedInputBorder extends InputBorder {
/// Creates a rounded rectangle outline border for an [InputDecorator].
///
/// If the [borderSide] parameter is [BorderSide.none], it will not draw a
/// border. However, it will still define a shape (which you can see if
/// [InputDecoration.filled] is true).
///
/// If an application does not specify a [borderSide] parameter of