# gradient-borders **Repository Path**: flyelf/gradient-borders ## Basic Information - **Project Name**: gradient-borders - **Description**: gradient-border - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-27 - **Last Updated**: 2025-10-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Gradient borders [![style: very good analysis](https://img.shields.io/badge/style-very_good_analysis-B22C89.svg)](https://pub.dev/packages/very_good_analysis) Various borders that use gradient instead of boring plain colors. ## Usage ### Box borders: Change your container borders to use fancy gradients: ```dart Container( width: 100, height: 100, decoration: BoxDecoration( border: const GradientBoxBorder( gradient: LinearGradient(colors: [Colors.blue, Colors.red]), width: 4, ), borderRadius: BorderRadius.circular(16) ), ), ``` Works with both: border radius, and with `BoxShape.circle` ![image](screenshots/box_borders.png) ### Input borders You can use `GradientOutlineInputBorder` as a part of your input decoration: ```dart TextField( decoration: InputDecoration( border: GradientOutlineInputBorder( gradient: LinearGradient(colors: [Colors.red, Colors.blue]), width: 2, ), focusedBorder: GradientOutlineInputBorder( gradient: LinearGradient(colors: [Colors.yellow, Colors.green]), width: 2 ), label: Text("Example"), ), ), ``` ![image](screenshots/outline_input_borders.png) You can also use `GradientUnderlineInputBorder` as part of your input decoration: ```dart TextField( decoration: InputDecoration( border: GradientOutlineInputBorder( gradient: LinearGradient(colors: [Colors.red, Colors.blue]), width: 2, ), focusedBorder: GradientUnderlineInputBorder( gradient: LinearGradient(colors: [Colors.yellow, Colors.green]), width: 2 ), label: Text("Example"), ), ), ``` ### Sponsored by [The Code Brothers](https://thecodebrothers.pl)