Skip to content

Instantly share code, notes, and snippets.

View RyouMon's full-sized avatar
💭
learning

Wen RyouMon

💭
learning
View GitHub Profile
@RyouMon
RyouMon / main.dart
Created December 28, 2022 11:20
Flutter Demo: PageView Example
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class NumberPageView extends StatefulWidget {
const NumberPageView({super.key});
@override
@RyouMon
RyouMon / main.dart
Created December 26, 2022 12:18
Flutter Demo: Infinite GridView
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class InfiniteGridView extends StatefulWidget {
const InfiniteGridView({super.key});
@override
@RyouMon
RyouMon / main.dart
Created December 26, 2022 11:58
Flutter Demo: GridView with SliverGridDelegateWithMaxCrossAxisExtent Example
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class SliverGridDelegateWithMaxCrossAxisExtentExample extends StatelessWidget {
const SliverGridDelegateWithMaxCrossAxisExtentExample({super.key});
@override
@RyouMon
RyouMon / man.dart
Created December 26, 2022 11:40
Flutter Demo: GridView with SliverGridDelegateWithFixedCrossAxisCount Example
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class SliverGridDelegateWithFixedCrossAxisCountExample extends StatelessWidget {
const SliverGridDelegateWithFixedCrossAxisCountExample({super.key});
@override
@RyouMon
RyouMon / main.dart
Created December 25, 2022 14:23
Flutter Demo: AnimatedList Example
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class AnimatedListRoute extends StatefulWidget {
const AnimatedListRoute({super.key});
@override
@RyouMon
RyouMon / main.dart
Last active December 24, 2022 15:36
Flutter Demo: ScrollNotification Example
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class ScrollNotificationTest extends StatefulWidget {
const ScrollNotificationTest({super.key});
@override
@RyouMon
RyouMon / main.dart
Last active December 23, 2022 14:26
Flutter Demo, ScrollController Example: addListener and animateTo
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class ScrollControllerTest extends StatefulWidget {
final String title;
const ScrollControllerTest({super.key, required this.title});
@RyouMon
RyouMon / main.dart
Last active December 22, 2022 15:57
Flutter Demo: A List show number 1-100
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class InfiniteListView extends StatefulWidget {
const InfiniteListView({super.key});
@override
@RyouMon
RyouMon / main.dart
Created December 11, 2022 03:05
SingleChildScrollView Example
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class SingleChildScrollViewTest extends StatelessWidget {
const SingleChildScrollViewTest({super.key});
@override
@RyouMon
RyouMon / main.dart
Created November 26, 2022 16:54
Flutter: LayoutBuilder Example
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class ResponsiveColumn extends StatelessWidget {
const ResponsiveColumn({super.key, required this.children});
final List<Widget> children;