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
Last active November 6, 2022 09:56
Parent manage states
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@RyouMon
RyouMon / main.dart
Created November 6, 2022 11:36
Manager some states by self, other by parent
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@RyouMon
RyouMon / main.dart
Last active November 6, 2022 11:42
Manage self states
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@RyouMon
RyouMon / main.dart
Created November 12, 2022 07:46
Flutter example application: counter
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@RyouMon
RyouMon / main.dart
Last active November 12, 2022 08:15
New route
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@RyouMon
RyouMon / main.dart
Created November 12, 2022 15:11
Pass value between route
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@RyouMon
RyouMon / main.dart
Created November 13, 2022 01:27
Named route
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@RyouMon
RyouMon / main.dart
Created November 13, 2022 02:37
Pass args to named route
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@RyouMon
RyouMon / main.dart
Created November 13, 2022 06:08
Text widget
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@RyouMon
RyouMon / main.dart
Last active November 13, 2022 06:20
TextStyle
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override