verve 0.3.1 verve: ^0.3.1 copied to clipboard
An opinionated Flutter theming solution, building on modern Material and Scandinavian principles.
import 'package:flutter/material.dart';
import 'package:verve/verve.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Verve Example',
//Navy verveSwatch
theme: verveSwatch(theme: VerveTheme.navy),
home: Scaffold(
appBar: AppBar(
title: Text('Welcome to Verve!'),
),
body: Center(
child: Column(
children: <Widget> [
//Generator for String based ListView
//Uses rounded verveCards.
verveListView(
titles: [
'This is a list',
'It adds some hope'
],
subtitles: [
'made of verveCards.',
'to boring ListView.builder.'
]),
//Rounded-flat button.
verveButton(onPressed: () {}, child: Text('CLICK')),
],
),
),
),
);
}
}