Skip to content

Instantly share code, notes, and snippets.

@horgag1
horgag1 / gist:ea7f673e60b8216066b8fd3af5b66525
Created October 2, 2018 13:45
Rounded button ... suitable for login button on home page
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Title',
home: LoginButt(),
ListView.builder(
itemCount: data == null ? 1 : data.length + 1,
itemBuilder: (BuildContext context, int index) {
if (index == 0) {
// return the header
return new Column(...);
}
index -= 1;
// return row