This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class SimpleList extends StatefulWidget { | |
SimpleList({Key key}) : super(key: key); | |
@override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
const _tabletBreakpoint = 720.0; | |
const _desktopBreakpoint = 1440.0; | |
const _minHeight = 400.0; | |
const _tabletSpacingVertical = 15.0; | |
const _tabletSpacingHorizontial = 10.0; | |
const _drawerWidth = 304.0; | |
class NavigationRail extends StatelessWidget { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:luitsapp/Screens/splashScreen.dart'; | |
import 'package:luitsapp/services/hive/credentialsManager.dart'; | |
import 'package:tinycolor/tinycolor.dart'; | |
void main() async { | |
runApp(LUITSApp()); | |
} | |
class LUITSApp extends StatefulWidget { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'dart:ui'; | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:google_sign_in/google_sign_in.dart'; | |
import 'package:firebase_auth/firebase_auth.dart'; | |
final GoogleSignIn _googleAuth = GoogleSignIn(); | |
final FirebaseAuth _auth = FirebaseAuth.instance; | |
Future<dynamic> _signInWithGoogle({BuildContext ctx}) async { | |
final GoogleSignInAccount googleUser = await _googleAuth.signIn(); | |
if (googleUser == null) { | |
Scaffold.of(ctx).showSnackBar(SnackBar( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:html' as html; | |
import 'package:mime_type/mime_type.dart'; | |
import 'package:path/path.dart' as Path; | |
import 'package:image_picker_web/image_picker_web.dart'; | |
import 'package:firebase/firebase.dart' as fb; | |
import 'package:flutter/material.dart'; | |
html.File _cloudFile; | |
var _fileBytes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
final kExpansionTileHeight = 114; | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
final kExpansionTileHeight = 114; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MIT License | |
// | |
// Copyright (c) 2019 Simon Lightfoot | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Provide nginx webserver | |
FROM nginx:stable | |
# Set directory to Copy App | |
WORKDIR /app | |
# Prerequisites | |
RUN apt update && apt install -y curl git unzip xz-utils zip libglu1-mesa | |
# Download Flutter SDK |
OlderNewer