Skip to content

Instantly share code, notes, and snippets.

Gudao Luo cnruby

Block or report user

Report or block cnruby

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cnruby
cnruby / main.dart
Created Dec 8, 2019
Flutter App 3D: Customize for iOS and Android
View main.dart
import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/cupertino.dart';
const String _name = "YourName";
final ThemeData kIOSTheme = new ThemeData(
primarySwatch: Colors.orange,
primaryColor: Colors.grey[100],
primaryColorBrightness: Brightness.light,
@cnruby
cnruby / main.dart
Created Dec 8, 2019
Flutter App 3C: wrapping longer messages, and adding native-looking customizations
View main.dart
import 'package:flutter/material.dart';
const String _name = "YourName";
void main() {
runApp(new FriendlychatApp());
}
class FriendlychatApp extends StatelessWidget {
@override
@cnruby
cnruby / main.dart
Created Dec 8, 2019
Flutter App 3B: making the Send button enabled only when there's text to send
View main.dart
import 'package:flutter/material.dart';
const String _name = "YourName";
void main() {
runApp(new FriendlychatApp());
}
class FriendlychatApp extends StatelessWidget {
@override
@cnruby
cnruby / main.dart
Created Dec 8, 2019
Flutter App 3A: Animate your app with class SizeTransition
View main.dart
import 'package:flutter/material.dart';
const String _name = "YourName";
void main() {
runApp(new FriendlychatApp());
}
class FriendlychatApp extends StatelessWidget {
@override
@cnruby
cnruby / main.dart
Created Dec 8, 2019
Flutter App 39: Implement a message list
View main.dart
import 'package:flutter/material.dart';
const String _name = "YourName";
void main() {
runApp(new FriendlychatApp());
}
class FriendlychatApp extends StatelessWidget {
@override
@cnruby
cnruby / main.dart
Created Dec 8, 2019
Flutter App 39: Implement a message list
View main.dart
import 'package:flutter/material.dart';
const String _name = "YourName";
void main() {
runApp(new FriendlychatApp());
}
class FriendlychatApp extends StatelessWidget {
@override
@cnruby
cnruby / main.dart
Created Dec 8, 2019
Flutter App 38: Place the static message list
View main.dart
import 'package:flutter/material.dart';
const String _name = "YourName";
void main() {
runApp(new FriendlychatApp());
}
class FriendlychatApp extends StatelessWidget {
@override
@cnruby
cnruby / main.dart
Created Dec 8, 2019
Flutter App 37: Place a list
View main.dart
import 'package:flutter/material.dart';
const String _name = "YourName";
void main() {
runApp(new FriendlychatApp());
}
class FriendlychatApp extends StatelessWidget {
@override
@cnruby
cnruby / main.dart
Created Dec 7, 2019
Flutter App 36: Adding a border to a widget
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(new FriendlychatApp());
}
class FriendlychatApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
@cnruby
cnruby / main.dart
Created Dec 7, 2019
Flutter App 35: Add a responsive Send button
View main.dart
import 'package:flutter/material.dart';
void main() {
runApp(new FriendlychatApp());
}
class FriendlychatApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
You can’t perform that action at this time.