Skip to content

Instantly share code, notes, and snippets.

@harkairt
harkairt / main.dart
Last active May 28, 2024 12:41
wrap
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@harkairt
harkairt / main.dart
Last active March 8, 2023 15:17
Fill vertical viewport, but scrollable unsufficient height
import 'package:flutter/material.dart';
const mainText = "AAAAAAAAAAAAAAAAAAAAAAAAAAA";
const subText = "BBBBBBBBBBBBBBBBBBBBBBBBBBB";
final greenBorder = BoxDecoration(border: Border.all(color: Colors.green));
void main() {
runApp(const MyApp());
}
@harkairt
harkairt / main.dart
Created July 4, 2021 09:14
matching \pL
void main() {
print(RegExp('\pL*', unicode: true).allMatches('căști').toString());
}
@harkairt
harkairt / main.dart
Last active December 26, 2020 11:21
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@harkairt
harkairt / main.dart
Last active May 22, 2020 17:45
selection issue
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
patronumka