Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
learning

Wen RyouMon

💭
learning
View GitHub Profile
@RyouMon
RyouMon / main.dart
Created Dec 28, 2022
Flutter Demo: PageView Example
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class NumberPageView extends StatefulWidget {
const NumberPageView({super.key});
@override
@RyouMon
RyouMon / main.dart
Created Dec 26, 2022
Flutter Demo: Infinite GridView
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class InfiniteGridView extends StatefulWidget {
const InfiniteGridView({super.key});
@override
@RyouMon
RyouMon / main.dart
Created Dec 26, 2022
Flutter Demo: GridView with SliverGridDelegateWithMaxCrossAxisExtent Example
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class SliverGridDelegateWithMaxCrossAxisExtentExample extends StatelessWidget {
const SliverGridDelegateWithMaxCrossAxisExtentExample({super.key});
@override
@RyouMon
RyouMon / man.dart
Created Dec 26, 2022
Flutter Demo: GridView with SliverGridDelegateWithFixedCrossAxisCount Example
View man.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class SliverGridDelegateWithFixedCrossAxisCountExample extends StatelessWidget {
const SliverGridDelegateWithFixedCrossAxisCountExample({super.key});
@override
@RyouMon
RyouMon / main.dart
Created Dec 25, 2022
Flutter Demo: AnimatedList Example
View main.dart
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 Dec 24, 2022
Flutter Demo: ScrollNotification Example
View main.dart
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 Dec 23, 2022
Flutter Demo, ScrollController Example: addListener and animateTo
View main.dart
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 Dec 22, 2022
Flutter Demo: A List show number 1-100
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class InfiniteListView extends StatefulWidget {
const InfiniteListView({super.key});
@override
@RyouMon
RyouMon / main.dart
Created Dec 11, 2022
SingleChildScrollView Example
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class SingleChildScrollViewTest extends StatelessWidget {
const SingleChildScrollViewTest({super.key});
@override
@RyouMon
RyouMon / main.dart
Created Nov 26, 2022
Flutter: LayoutBuilder Example
View main.dart
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;