Skip to content

Instantly share code, notes, and snippets.

View esouthren's full-sized avatar

Eilidh Southren esouthren

  • London
View GitHub Profile
@esouthren
esouthren / main.dart
Created January 3, 2023 18:38
AppBar icon override
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = ThemeData.light(useMaterial3: true);
@esouthren
esouthren / main.dart
Created January 12, 2023 12:10
M3 Checkbox error sides
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
@esouthren
esouthren / main.dart
Created January 16, 2023 14:10
TextField disabled example
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for [TextFormField].
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
@esouthren
esouthren / main.dart
Created February 3, 2023 12:28
TextField icons
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for [TextFormField].
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() => runApp(const MyApp());
@esouthren
esouthren / main.dart
Created February 6, 2023 12:08
list tile icon buttons
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for [TextFormField].
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override