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 11:42
Manage self states
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 09:56
Parent manage states
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
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
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
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
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
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
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
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
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override