Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import 'package:flutter/material.dart';
import 'eventdetails/eventdetails.dart';
class SquanchyFlutterApp extends StatelessWidget {
@override
build(context: BuildContext): Widget {
final theme = ThemeData(
primarySwatch: MaterialColor(0XFFE65B77, {
50: Color(0xFFFCEBEF)
100: Color(0xFFF8CED6)
200: Color(0xFFF3ADBB)
300: Color(0xFFEE8CA0)
400: Color(0xFFEA748B)
500: Color(0XFFE65B77)
600: Color(0xFFE3536F)
700: Color(0xFFDF4964)
800: Color(0xFFDB405A)
900: Color(0xFFD52F47)
})
accentColor: MaterialAccentColor(0xFF67B6E2, {
100: Color(0xFF95CCEB)
200: Color(0xFF67B6E2)
400: Color(0xFF5FAFDF)
700: Color(0xFF4A9ED6)
})
fontFamily: "Quicksand"
)
return MaterialApp(
title: 'Squanchy Flutter'
theme: theme
home: EventDetailsPage()
)
}
}
import 'package:flutter/material.dart';
import 'eventdetails/eventdetails.dart';
class SquanchyFlutterApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = new ThemeData(
primarySwatch: const MaterialColor(0XFFE65B77, const <int, Color>{
50: const Color(0xFFFCEBEF),
100: const Color(0xFFF8CED6),
200: const Color(0xFFF3ADBB),
300: const Color(0xFFEE8CA0),
400: const Color(0xFFEA748B),
500: const Color(0XFFE65B77),
600: const Color(0xFFE3536F),
700: const Color(0xFFDF4964),
800: const Color(0xFFDB405A),
900: const Color(0xFFD52F47),
}),
accentColor: const MaterialAccentColor(0xFF67B6E2, const <int, Color>{
100: const Color(0xFF95CCEB),
200: const Color(0xFF67B6E2),
400: const Color(0xFF5FAFDF),
700: const Color(0xFF4A9ED6),
}),
fontFamily: "Quicksand");
return new MaterialApp(
title: 'Squanchy Flutter',
theme: theme,
home: new EventDetailsPage(),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.