Skip to content

Instantly share code, notes, and snippets.

View 7ANV1R's full-sized avatar
😼
ʕ•́ᴥ•̀ʔっ H E L L O !

Tanvir Ibn Mizan 7ANV1R

😼
ʕ•́ᴥ•̀ʔっ H E L L O !
View GitHub Profile
@7ANV1R
7ANV1R / Pagination_with_riverpod_futureprovider.dart
Created June 14, 2023 10:43
Pagination with Riverpod FutureProvider API data (infinite_scroll_pagination+riverpod)
// import 'package:flutter/material.dart';
// import 'package:infinite_scroll_pagination/infinite_scroll_pagination.dart';
// import 'package:riverpod/riverpod.dart';
// Import properly
// Mock data model representing a property
class Property {
final int id;
final String name;
@7ANV1R
7ANV1R / card_selector.dart
Created November 6, 2023 10:33
card_selector package with null safety
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
const defaultAnimationDuration = 150;
enum Position { left, right }
enum CardSelectorState { idle, target, switching, targetBack, switchingBack }
/// A widget to select stacked widgets sliding left or right
@7ANV1R
7ANV1R / app_theme.dart
Created December 6, 2023 17:01
Flutter app theme seed color
import 'package:flutter/material.dart';
class AppCustomTheme {
static ThemeData lightTheme = ThemeData(
colorScheme: ColorScheme.fromSeed(
brightness: Brightness.light,
seedColor: LightColorPallete.seedColor,
primary: LightColorPallete.primary,
onPrimary: LightColorPallete.onPrimary,
primaryContainer: LightColorPallete.primaryContainer,