Skip to content

Commit

Permalink
Merge pull request #3 from dpajak99/sheet-data
Browse files Browse the repository at this point in the history
Sheet data
  • Loading branch information
dpajak99 authored Nov 26, 2024
2 parents aaba6a5 + 370ab34 commit d8cb509
Show file tree
Hide file tree
Showing 219 changed files with 14,140 additions and 2,651 deletions.
2 changes: 1 addition & 1 deletion .fvmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"flutter": "3.24.3"
"flutter": "3.27.0-0.2.pre"
}
Binary file modified assets/fonts/GoogleSans/GoogleSans-Bold.ttf
100755 → 100644
Binary file not shown.
Binary file modified assets/fonts/GoogleSans/GoogleSans-BoldItalic.ttf
100755 → 100644
Binary file not shown.
Binary file modified assets/fonts/GoogleSans/GoogleSans-Italic.ttf
100755 → 100644
Binary file not shown.
Binary file modified assets/fonts/GoogleSans/GoogleSans-Medium.ttf
100755 → 100644
Binary file not shown.
Binary file modified assets/fonts/GoogleSans/GoogleSans-MediumItalic.ttf
100755 → 100644
Binary file not shown.
Binary file modified assets/fonts/GoogleSans/GoogleSans-Regular.ttf
100755 → 100644
Binary file not shown.
Binary file added assets/fonts/Roboto/Roboto-Black.ttf
Binary file not shown.
Binary file added assets/fonts/Roboto/Roboto-BlackItalic.ttf
Binary file not shown.
Binary file added assets/fonts/Roboto/Roboto-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/Roboto/Roboto-BoldItalic.ttf
Binary file not shown.
Binary file added assets/fonts/Roboto/Roboto-Italic.ttf
Binary file not shown.
Binary file added assets/fonts/Roboto/Roboto-Light.ttf
Binary file not shown.
Binary file added assets/fonts/Roboto/Roboto-LightItalic.ttf
Binary file not shown.
Binary file added assets/fonts/Roboto/Roboto-Medium.ttf
Binary file not shown.
Binary file added assets/fonts/Roboto/Roboto-MediumItalic.ttf
Binary file not shown.
Binary file added assets/fonts/Roboto/Roboto-Regular.ttf
Binary file not shown.
Binary file added assets/fonts/Roboto/Roboto-Thin.ttf
Binary file not shown.
Binary file added assets/fonts/Roboto/Roboto-ThinItalic.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions assets/icons/add_circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/add_fonts.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/border_bottom.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/border_clear.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions assets/icons/border_color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/border_horizontal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/border_inner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/border_left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/border_outer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/border_right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/border_top.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/border_vertical.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/check.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/colorize.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/edit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/format_align_center.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/format_align_justify.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/format_align_right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 16 additions & 1 deletion assets/icons/format_color_fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/format_color_reset.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 16 additions & 1 deletion assets/icons/format_color_text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/format_text_clip.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/format_text_wrap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/line_style.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/right_angle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/text_increase.svg
3 changes: 3 additions & 0 deletions assets/icons/text_rotation_angledown.svg
3 changes: 3 additions & 0 deletions assets/icons/text_rotation_angleup.svg
3 changes: 3 additions & 0 deletions assets/icons/text_rotation_down.svg
4 changes: 3 additions & 1 deletion assets/icons/text_rotation_none.svg
3 changes: 3 additions & 0 deletions assets/icons/text_rotation_up.svg
3 changes: 3 additions & 0 deletions assets/icons/text_rotation_vertical.svg
1 change: 1 addition & 0 deletions assets/icons/vertical_align_center.svg
1 change: 1 addition & 0 deletions assets/icons/vertical_align_top.svg
12 changes: 4 additions & 8 deletions example/lib/comparison.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:sheets/core/sheet_controller.dart';
import 'package:sheets/core/sheet_index.dart';
import 'package:sheets/core/sheet_properties.dart';
import 'package:sheets/core/sheet_data_manager.dart';
import 'package:sheets/sheet.dart';
import 'package:sheets/widgets/material/toolbar/sheet_toolbar.dart';
import 'package:sheets/widgets/sections/sheet_footer.dart';
import 'package:sheets/widgets/sections/sheet_section_details_bar.dart';
import 'package:sheets/widgets/sections/sheet_section_toolbar.dart';
import 'package:spreadsheet_table/spreadsheet_table.dart';

void main() {
Expand Down Expand Up @@ -108,10 +107,7 @@ class _SpreadsheetTable extends StatelessWidget {

class _SheetPageState extends State<_SheetPage> {
final SheetController sheetController = SheetController(
properties: SheetProperties(
customColumnStyles: <ColumnIndex, ColumnStyle>{},
customRowStyles: <RowIndex, RowStyle>{},
),
dataManager: SheetDataManager.dev(),
);

@override
Expand All @@ -129,7 +125,7 @@ class _SheetPageState extends State<_SheetPage> {
body: SafeArea(
child: Column(
children: <Widget>[
const SheetSectionToolbar(),
SheetToolbar(sheetController: sheetController),
SheetSectionDetailsBar(sheetController: sheetController),
Expanded(
child: Sheet(sheetController: sheetController),
Expand Down
22 changes: 13 additions & 9 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
import 'dart:async';

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:intl/date_symbol_data_local.dart';
import 'package:intl/intl.dart';
import 'package:sheets/core/sheet_controller.dart';
import 'package:sheets/core/sheet_index.dart';
import 'package:sheets/core/sheet_properties.dart';
import 'package:sheets/core/sheet_data_manager.dart';
import 'package:sheets/sheet.dart';
import 'package:sheets/widgets/material/toolbar/sheet_toolbar.dart';
import 'package:sheets/widgets/sections/sheet_footer.dart';
import 'package:sheets/widgets/sections/sheet_section_details_bar.dart';
import 'package:sheets/widgets/sections/sheet_section_toolbar.dart';

void main() {
void main() async {
Intl.defaultLocale = 'pl_PL';
await initializeDateFormatting('pl_PL');

runApp(const MaterialSheetExample());
}

Expand All @@ -21,10 +27,7 @@ class MaterialSheetExample extends StatefulWidget {

class _MaterialSheetExampleState extends State<MaterialSheetExample> {
final SheetController sheetController = SheetController(
properties: SheetProperties(
customColumnStyles: <ColumnIndex, ColumnStyle>{},
customRowStyles: <RowIndex, RowStyle>{},
),
dataManager: SheetDataManager.dev(),
);

@override
Expand All @@ -37,12 +40,13 @@ class _MaterialSheetExampleState extends State<MaterialSheetExample> {
Widget build(BuildContext context) {
return MaterialApp(
title: 'Sheets example',
locale: const Locale('pl_PL'),
debugShowCheckedModeBanner: false,
home: Scaffold(
body: SafeArea(
child: Column(
children: <Widget>[
const SheetSectionToolbar(),
SheetToolbar(sheetController: sheetController),
SheetSectionDetailsBar(sheetController: sheetController),
Expanded(
child: Sheet(sheetController: sheetController),
Expand Down
Loading

0 comments on commit d8cb509

Please sign in to comment.