Skip to content

Instantly share code, notes, and snippets.

View Vanchel's full-sized avatar

Ivan Timashov Vanchel

View GitHub Profile
@Vanchel
Vanchel / flutter_custom_checkbox_template.dart
Last active July 21, 2023 09:57
Test case for implementing a custom job interview checkbox
import 'package:flutter/material.dart';
void main() => runApp(const CheckboxExampleApp());
class CheckboxExampleApp extends StatelessWidget {
const CheckboxExampleApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
@Vanchel
Vanchel / outlined_input_border.dart
Last active June 10, 2024 14:46
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