Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Roi Peker roipeker

🏠
Working from home
View GitHub Profile
@roipeker
roipeker / manu_particles.dart
Last active Sep 22, 2021
Simple Flutter particles with Stack + Transform
View manu_particles.dart
/// roipeker 2021
/// live demo at:
/// https://roi-particles-manu.surge.sh
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
import 'package:vector_math/vector_math_64.dart' hide Matrix4, Colors;
@roipeker
roipeker / main.dart
Created Sep 14, 2021
GraphX sunburst chart concept.
View main.dart
/// made by roipeker 2021.
/// demo: https://graphx-sunburst-chart.surge.sh
import 'package:flutter/material.dart';
import 'package:graphx/graphx.dart';
import 'sunburst.dart';
void main() {
runApp(const MyApp());
@roipeker
roipeker / main.dart
Created Sep 6, 2021
radio slider widget sample.
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
@roipeker
roipeker / about_page.dart
Last active Sep 1, 2021
sample reactive ValueNotifier + StateWidget( Widget build() inside Widget)
View about_page.dart
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
import 'package:redo_provider/notifier/notifier.dart';
import 'package:redo_provider/state_widget.dart';
class AboutPage extends StateWidget<AboutPageState> {
const AboutPage({Key? key}) : super(key: key);
@roipeker
roipeker / main.dart
Last active Aug 21, 2021
TextFields components variants for drop downs and calendar selection
View main.dart
/// "actionable" TextField samples for Calendar and DropDown.
import 'package:flutter/material.dart';
/// -- main --
void main() {
runApp(
MaterialApp(
theme: ThemeData(
primaryColor: kDarkBlueColor,
@roipeker
roipeker / main.dart
Last active Aug 19, 2021
Rect area tween.
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return const MaterialApp(
@roipeker
roipeker / main.dart
Last active Aug 17, 2021
sample keyboard
View main.dart
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@roipeker
roipeker / keyboard_bar_input.dart
Created Aug 17, 2021
Soft Keyboard bar input text for quick editing.
View keyboard_bar_input.dart
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
/// Add it under MaterialApp.
class KeyboardBarInput extends StatefulWidget {
final Widget child;
@roipeker
roipeker / hint.txt
Last active Aug 16, 2021
quick test for dartpad.
View hint.txt
trying to see if it works.
@roipeker
roipeker / gradient_input_border.dart
Last active Aug 13, 2021
concept for Gradient input border for TextFields
View gradient_input_border.dart
import 'dart:math' as math;
import 'dart:ui';
import 'package:flutter/material.dart';
/// Gradient Shader in outline input borders.
/// Doesn't merge solid color BorderSide and GradientBorderSide.
class OutlineInputBorderShader extends OutlineInputBorder {
const OutlineInputBorderShader({
GradientBorderSide borderSide = const GradientBorderSide(),